aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authornodiscc <nodiscc@gmail.com>2014-12-25 01:15:14 +0100
committernodiscc <nodiscc@gmail.com>2014-12-25 01:15:14 +0100
commit169512f0b8eaf5cc467ab9b4142011e60811bc67 (patch)
tree835b6e37121a3285d84fd294d7b4d97ff77ff028 /index.php
parent60b83e7cf763be3a68529f1d945710edaeb87967 (diff)
parentcae64e52e47811a3fbef534f296b8952680d0d8f (diff)
downloadShaarli-169512f0b8eaf5cc467ab9b4142011e60811bc67.tar.gz
Shaarli-169512f0b8eaf5cc467ab9b4142011e60811bc67.tar.zst
Shaarli-169512f0b8eaf5cc467ab9b4142011e60811bc67.zip
Merge pull request #83 from pikzen/loop-factor
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);