aboutsummaryrefslogtreecommitdiffstats
path: root/include/category_cats.inc.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-07-07 09:54:15 +0000
committermistic100 <mistic@piwigo.org>2014-07-07 09:54:15 +0000
commit8a1ea2ad0aa4d513ebea0f2bc46b96bd4ddc504f (patch)
tree1c0bcbe3b1d7c8a1c464804de0fbb2a4826ef8f4 /include/category_cats.inc.php
parentfb4237b7861b818cc3d46d7cc0740d648e80ccd8 (diff)
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
Diffstat (limited to '')
-rw-r--r--include/category_cats.inc.php18
1 files changed, 2 insertions, 16 deletions
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;
}