From 227859142ad7ce596bd872f59683917f0f3a2669 Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Mon, 3 Feb 2025 11:48:09 +0100 Subject: [PATCH] Improvement to limit impact of bugfix on simple functions that accept references --- libs/sysplugins/smarty_internal_templatecompilerbase.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/sysplugins/smarty_internal_templatecompilerbase.php b/libs/sysplugins/smarty_internal_templatecompilerbase.php index ea62e868..c556fe59 100644 --- a/libs/sysplugins/smarty_internal_templatecompilerbase.php +++ b/libs/sysplugins/smarty_internal_templatecompilerbase.php @@ -667,7 +667,8 @@ abstract class Smarty_Internal_TemplateCompilerBase 'a custom modifier.', E_USER_DEPRECATED); } - if (isset($this->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER][$name])) { + if (isset($this->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER][$name][0]) + && !is_string($this->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER][$name][0])) { return sprintf( 'call_user_func_array($_smarty_tpl->registered_plugins[ \'%s\' ][ %s ][ 0 ], array( %s ))', Smarty::PLUGIN_MODIFIER,