mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user