aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorFlorian Eula <eula.florian@gmail.com>2014-12-22 17:11:53 +0100
committerFlorian Eula <eula.florian@gmail.com>2014-12-25 01:10:58 +0100
commitcae64e52e47811a3fbef534f296b8952680d0d8f (patch)
tree835b6e37121a3285d84fd294d7b4d97ff77ff028 /index.php
parent60b83e7cf763be3a68529f1d945710edaeb87967 (diff)
downloadShaarli-cae64e52e47811a3fbef534f296b8952680d0d8f.tar.gz
Shaarli-cae64e52e47811a3fbef534f296b8952680d0d8f.tar.zst
Shaarli-cae64e52e47811a3fbef534f296b8952680d0d8f.zip
Refactored the daily column generation (only one loop)
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/index.php b/index.php
index 02a6725f..b280ee9b 100644
--- a/index.php
+++ b/index.php
@@ -1173,10 +1173,7 @@ function showDaily()
1173 $PAGE = new pageBuilder; 1173 $PAGE = new pageBuilder;
1174 $PAGE->assign('linksToDisplay',$linksToDisplay); 1174 $PAGE->assign('linksToDisplay',$linksToDisplay);
1175 $PAGE->assign('linkcount',count($LINKSDB)); 1175 $PAGE->assign('linkcount',count($LINKSDB));
1176 $PAGE->assign('col1',$columns[0]); 1176 $PAGE->assign('cols', $columns);
1177 $PAGE->assign('col1',$columns[0]);
1178 $PAGE->assign('col2',$columns[1]);
1179 $PAGE->assign('col3',$columns[2]);
1180 $PAGE->assign('day',utf8_encode(strftime('%A %d, %B %Y',linkdate2timestamp($day.'_000000')))); 1177 $PAGE->assign('day',utf8_encode(strftime('%A %d, %B %Y',linkdate2timestamp($day.'_000000'))));
1181 $PAGE->assign('previousday',$previousday); 1178 $PAGE->assign('previousday',$previousday);
1182 $PAGE->assign('nextday',$nextday); 1179 $PAGE->assign('nextday',$nextday);