mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-02 09:24:28 +02:00
Improvement to limit impact of bugfix on simple functions that accept references
This commit is contained in:
@@ -667,7 +667,8 @@ abstract class Smarty_Internal_TemplateCompilerBase
|
|||||||
'a custom modifier.', E_USER_DEPRECATED);
|
'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(
|
return sprintf(
|
||||||
'call_user_func_array($_smarty_tpl->registered_plugins[ \'%s\' ][ %s ][ 0 ], array( %s ))',
|
'call_user_func_array($_smarty_tpl->registered_plugins[ \'%s\' ][ %s ][ 0 ], array( %s ))',
|
||||||
Smarty::PLUGIN_MODIFIER,
|
Smarty::PLUGIN_MODIFIER,
|
||||||
|
Reference in New Issue
Block a user