From 8a1ea2ad0aa4d513ebea0f2bc46b96bd4ddc504f Mon Sep 17 00:00:00 2001 From: mistic100 Date: Mon, 7 Jul 2014 09:54:15 +0000 Subject: feature 2807: nicer display of "from to" dates (required changes in "format_date" function) git-svn-id: http://piwigo.org/svn/trunk@28981 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/category_cats.inc.php | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'include/category_cats.inc.php') diff --git a/include/category_cats.inc.php b/include/category_cats.inc.php index 2e90a9441..4cab63d27 100644 --- a/include/category_cats.inc.php +++ b/include/category_cats.inc.php @@ -336,24 +336,10 @@ if (count($categories) > 0) if (!empty($from)) { - $info = ''; - - if (date('Y-m-d', strtotime($from)) == date('Y-m-d', strtotime($to))) - { - $info = format_date($from); - } - else - { - $info = l10n( - 'from %s to %s', - format_date($from), - format_date($to) - ); - } - $tpl_var['INFO_DATES'] = $info; + $tpl_var['INFO_DATES'] = format_fromto($from, $to); } } - }//fromto + } $tpl_thumbnails_var[] = $tpl_var; } -- cgit v1.2.3