From b63d2ad29104d902d38284f689f740353f454fc8 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 17 Feb 2016 10:20:39 +0100 Subject: [PATCH] Module: fix multi-instance hook registrations This fixes the problem that registering the same Hook multiple times with the provideHook shortcut and no class name kept only one implementation --- 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 b3c567efd..bfe941d70 100644 --- a/library/Icinga/Application/Modules/Module.php +++ b/library/Icinga/Application/Modules/Module.php @@ -1289,7 +1289,7 @@ class Module $class = $implementation; } - Hook::register($name, $implementation, $class); + Hook::register($name, $class, $class); return $this; }