fixes #1655 removing multiple sizes deletio from conf/option/photo sizes

This commit is contained in:
Matthieu Leproux
2022-04-26 10:33:09 +02:00
parent f6584f3118
commit 7958cd4f89
2 changed files with 7 additions and 34 deletions
+7 -7
View File
@@ -523,13 +523,13 @@ switch ($page['section'])
$template->assign('derivatives', $tpl_vars);
$template->assign('resize_quality', ImageStdParams::$quality);
$tpl_vars = array();
$now = time();
foreach(ImageStdParams::$custom as $custom=>$time)
{
$tpl_vars[$custom] = ($now-$time<=24*3600) ? l10n('today') : time_since($time, 'day');
}
$template->assign('custom_derivatives', $tpl_vars);
// $tpl_vars = array();
// $now = time();
// foreach(ImageStdParams::$custom as $custom=>$time)
// {
// $tpl_vars[$custom] = ($now-$time<=24*3600) ? l10n('today') : time_since($time, 'day');
// }
// $template->assign('custom_derivatives', $tpl_vars);
}
break;