// Hook modules exceptions now works with new dispatcher

This commit is contained in:
rMalie
2011-07-11 15:16:16 +00:00
parent 139bb84f87
commit 502942002d
3 changed files with 68 additions and 24 deletions

View File

@@ -783,9 +783,8 @@ abstract class ModuleCore
continue;
$exceptions = $moduleInstance->getExceptions($array['id_hook']);
foreach ($exceptions AS $exception)
if (strstr(basename($_SERVER['PHP_SELF']).'?'.$_SERVER['QUERY_STRING'], $exception))
continue 2;
if (in_array(Dispatcher::$controller, $exceptions))
continue;
if (is_callable(array($moduleInstance, 'hook'.$hook_name)))
{