[-] 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:
+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user