From 0e926ba05eef31698a04df936d0c768c50f5c146 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 12 Sep 2014 09:02:23 +0200 Subject: [PATCH] Revert "Revert "Web\Hook: register('grapher') This reverts commit 65564cda65413bf9ee266d673f48463d07ab7895. The test was wrong, not the code. --- library/Icinga/Web/Hook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Web/Hook.php b/library/Icinga/Web/Hook.php index 8e65bb33c..2e85f570e 100644 --- a/library/Icinga/Web/Hook.php +++ b/library/Icinga/Web/Hook.php @@ -123,7 +123,7 @@ class Hook */ private static function assertValidHook($instance, $name) { - $base_class = self::$BASE_NS . ucfirst($name); + $base_class = self::$BASE_NS . ucfirst($name) . 'Hook'; if (strpos($base_class, self::$classSuffix) === false) { $base_class .= self::$classSuffix;