// 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
This commit is contained in:
1 parent
4e07ff3602
commit
fe439c6a1b
1 file changed
+4
-1
@@ -155,5 +155,8 @@ function smartyRegisterFunction($smarty, $type, $function, $params)
|
|||||||
function smartyHook($params, &$smarty)
|
function smartyHook($params, &$smarty)
|
||||||
{
|
{
|
||||||
if (isset($params['h']) && !empty($params['h']))
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user