From fe439c6a1bc53c22cc0ba3950097d78ec9f278a6 Mon Sep 17 00:00:00 2001 From: rMalie Date: Wed, 4 Jan 2012 10:40:53 +0000 Subject: [PATCH] // Add hook params on {hook] smarty function git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12108 b9a71923-0436-4b27-9f14-aed3839534dd --- config/smarty.config.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); + } }