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
This commit is contained in:
mistic100
2014-07-07 09:54:15 +00:00
parent fb4237b786
commit 8a1ea2ad0a
4 changed files with 67 additions and 30 deletions
+2 -16
View File
@@ -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;
}