diff options
Diffstat (limited to '')
-rw-r--r-- | include/category_cats.inc.php | 18 |
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; } |