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;