]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
Refactored the daily column generation (only one loop)
[github/shaarli/Shaarli.git] / index.php
index 02a6725f918767b8164e91f2d5aa5a877d35a0c5..b280ee9b4d54d2df4511ebea2bad234635d7cce3 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1173,10 +1173,7 @@ function showDaily()
     $PAGE = new pageBuilder;
     $PAGE->assign('linksToDisplay',$linksToDisplay);
     $PAGE->assign('linkcount',count($LINKSDB));
-    $PAGE->assign('col1',$columns[0]);
-    $PAGE->assign('col1',$columns[0]);
-    $PAGE->assign('col2',$columns[1]);
-    $PAGE->assign('col3',$columns[2]);
+    $PAGE->assign('cols', $columns);
     $PAGE->assign('day',utf8_encode(strftime('%A %d, %B %Y',linkdate2timestamp($day.'_000000'))));
     $PAGE->assign('previousday',$previousday);
     $PAGE->assign('nextday',$nextday);