diff --git a/config/smarty.config.inc.php b/config/smarty.config.inc.php index 6085540c3..0ebb16cbb 100644 --- a/config/smarty.config.inc.php +++ b/config/smarty.config.inc.php @@ -155,5 +155,8 @@ function smartyRegisterFunction($smarty, $type, $function, $params) function smartyHook($params, &$smarty) { if (isset($params['h']) && !empty($params['h'])) - return Hook::exec($params['h']); + { + unset($hook_params['h']);d($hook_params); + return Hook::exec($params['h'], $hook_params); + } }