Merge pull request #525 from AngelFQC/7546

Disable hooks of uninstalled plugins - refs #7546
1.10.x
Angel Fernando Quiroz Campos 10 years ago
commit cfdce0d76b
  1. 4
      main/inc/lib/hook/HookManagement.php

@ -88,8 +88,8 @@ class HookManagement implements HookManagementInterface
public function deleteHook($eventName, $observerClassName, $type)
{
if ($type === HOOK_EVENT_TYPE_ALL) {
$this->insertHook($eventName, $observerClassName, HOOK_EVENT_TYPE_PRE);
$this->insertHook($eventName, $observerClassName, HOOK_EVENT_TYPE_POST);
$this->deleteHook($eventName, $observerClassName, HOOK_EVENT_TYPE_PRE);
$this->deleteHook($eventName, $observerClassName, HOOK_EVENT_TYPE_POST);
} else {
$this->insertHookIfNotExist($eventName, $observerClassName);

Loading…
Cancel
Save