[-] MO : modules exceptions stability improved
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@6140 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -638,8 +638,12 @@ abstract class ModuleCore
|
||||
|
||||
$exceptions = $moduleInstance->getExceptions((int)$array['id_hook'], (int)$array['id_module']);
|
||||
foreach ($exceptions AS $exception)
|
||||
{
|
||||
if (empty($row['value']))
|
||||
continue;
|
||||
if (strstr(basename($_SERVER['PHP_SELF']).'?'.$_SERVER['QUERY_STRING'], $exception['file_name']))
|
||||
continue 2;
|
||||
}
|
||||
|
||||
if (is_callable(array($moduleInstance, 'hook'.$hook_name)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user