From 54db2c9afa17b4bdf7b07396e8fcd7fad1afb38e Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 12 Nov 2015 18:33:51 +0100 Subject: [PATCH] Module::registerHook: use class as default key refs #9685 --- library/Icinga/Application/Modules/Module.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Application/Modules/Module.php b/library/Icinga/Application/Modules/Module.php index 737e5265e..1d1331524 100644 --- a/library/Icinga/Application/Modules/Module.php +++ b/library/Icinga/Application/Modules/Module.php @@ -1239,7 +1239,7 @@ class Module protected function registerHook($name, $class, $key = null) { if ($key === null) { - $key = $this->name; + $key = $class; } Hook::register($name, $key, $class);