// Improve performance

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14042 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-03-12 14:50:56 +00:00
parent b542939c9f
commit 951d49d00d
4 changed files with 19 additions and 11 deletions
+2 -3
View File
@@ -368,10 +368,9 @@ class HookCore extends ObjectModel
// Call hook method
if ($hook_callable)
$display = call_user_func(array($moduleInstance, 'hook'.$hook_name), $hookArgs);
$display = $moduleInstance->{'hook'.$hook_name}($hookArgs);
else if ($hook_retro_callable)
$display = call_user_func(array($moduleInstance, 'hook'.$retro_hook_name), $hookArgs);
$display = $moduleInstance->{'hook'.$retro_hook_name}($hookArgs);
// Live edit
if ($array['live_edit'] && ((Tools::isSubmit('live_edit') && Tools::getValue('ad') && (Tools::getValue('liveToken') == sha1(Tools::getValue('ad')._COOKIE_KEY_)))))
{