diff options
author | nodiscc <nodiscc@gmail.com> | 2014-12-25 01:15:14 +0100 |
---|---|---|
committer | nodiscc <nodiscc@gmail.com> | 2014-12-25 01:15:14 +0100 |
commit | 169512f0b8eaf5cc467ab9b4142011e60811bc67 (patch) | |
tree | 835b6e37121a3285d84fd294d7b4d97ff77ff028 /index.php | |
parent | 60b83e7cf763be3a68529f1d945710edaeb87967 (diff) | |
parent | cae64e52e47811a3fbef534f296b8952680d0d8f (diff) | |
download | Shaarli-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.php | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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); |