From 7532e1a802beb74b32417cedefc9a000733c8004 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Thu, 9 Jun 2011 20:34:48 +0000 Subject: feature:2330 ability to hide the "new" icon for recent photos git-svn-id: http://piwigo.org/svn/trunk@11285 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/category_default.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/category_default.inc.php') diff --git a/include/category_default.inc.php b/include/category_default.inc.php index 589d50724..66c89f889 100644 --- a/include/category_default.inc.php +++ b/include/category_default.inc.php @@ -110,7 +110,6 @@ foreach ($pictures as $row) 'TN_SRC' => get_thumbnail_url($row), 'TN_ALT' => $row['file'], 'TN_TITLE' => get_thumbnail_title($row), - 'icon_ts' => get_icon($row['date_available']), 'URL' => $url, /* Fields for template-extension usage */ @@ -127,6 +126,10 @@ foreach ($pictures as $row) 'FILE_HAS_HD' => ($row['has_high'] and $user['enabled_high']=='true') ? true:false, /* lack of include/functions_picture.inc.php */ ); + if ($conf['index_new_icon']) + { + $row['icon_ts'] = get_icon($row['date_available']); + } if ($user['show_nb_hits']) { -- cgit v1.2.3