From cae64e52e47811a3fbef534f296b8952680d0d8f Mon Sep 17 00:00:00 2001 From: Florian Eula Date: Mon, 22 Dec 2014 17:11:53 +0100 Subject: Refactored the daily column generation (only one loop) --- index.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 02a6725f..b280ee9b 100644 --- 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); -- cgit v1.2.3