mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-30 05:24:05 +02:00
changes on Smarty side breaks all prefilter in Piwigo
It would be better to modify the way template.class.php registers prefilters but I didn't find the appropriate data structure.
This commit is contained in:
@@ -60,7 +60,11 @@ class Smarty_Internal_Runtime_FilterHandler
|
||||
// loop over registered filters of specified type
|
||||
if (!empty($template->smarty->registered_filters[$type])) {
|
||||
foreach ($template->smarty->registered_filters[$type] as $key => $name) {
|
||||
$content = call_user_func($template->smarty->registered_filters[$type][$key], $content, $template);
|
||||
if (is_array($template->smarty->registered_filters[$type][$key])) {
|
||||
$content = call_user_func($template->smarty->registered_filters[$type][$key], $content, $template);
|
||||
} else {
|
||||
$content = $template->smarty->registered_filters[$type][$key]($content, $template);
|
||||
}
|
||||
}
|
||||
}
|
||||
// return filtered output
|
||||
|
||||
Reference in New Issue
Block a user