[-] PROJECT : isHookableOn function is now retrocompatible with old hook

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10905 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fSerny
2011-12-05 12:56:43 +00:00
parent 2e8abff9a9
commit a50b0af067
+2 -1
View File
@@ -1294,7 +1294,8 @@ abstract class ModuleCore
*/
public function isHookableOn($hook_name)
{
return is_callable(array($this, 'hook'.ucfirst($hook_name)));
$hook_retro = Db::getInstance()->getValue('SELECT `alias` FROM `'._DB_PREFIX_.'hook_alias` where `name` = \''.pSQL($hook_name).'\'');
return (is_callable(array($this, 'hook'.ucfirst($hook_name))) || is_callable(array($this, 'hook'.ucfirst($hook_retro))));
}
public function getPermission($variable, $employee = null)