Disable "show query" when insert new hook event or hook observer - refs BT#9092

1.10.x
Daniel Barreto 10 years ago
parent e0427280d5
commit 95ad0f51b9
  1. 4
      main/inc/lib/hook/HookManagement.class.php

@ -391,7 +391,7 @@ class HookManagement implements HookManagementInterface
'class_name' => $eventName,
'description' => get_lang('HookDescription' . $eventName),
);
$id = Database::insert($this->tables[TABLE_PLUGIN_HOOK_EVENT], $attributes, true);
$id = Database::insert($this->tables[TABLE_PLUGIN_HOOK_EVENT], $attributes);
$this->hookEvents[$eventName] = $id;
}
@ -403,7 +403,7 @@ class HookManagement implements HookManagementInterface
'path' => $object->getPath(),
'plugin_name' => $object->getPluginName(),
);
$id = Database::insert($this->tables[TABLE_PLUGIN_HOOK_OBSERVER], $attributes, true);
$id = Database::insert($this->tables[TABLE_PLUGIN_HOOK_OBSERVER], $attributes);
$this->hookObservers[$observerClassName] = $id;
}

Loading…
Cancel
Save