From d8f721081e51d09cafc4e92ff96087d40d176fd5 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 6 Mar 2016 00:16:44 +0100 Subject: [PATCH] PropertyModifierHook: fix default name string --- library/Director/Hook/PropertyModifierHook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Hook/PropertyModifierHook.php b/library/Director/Hook/PropertyModifierHook.php index 24a1678a..d8cc4b96 100644 --- a/library/Director/Hook/PropertyModifierHook.php +++ b/library/Director/Hook/PropertyModifierHook.php @@ -12,7 +12,7 @@ abstract class PropertyModifierHook public function getName() { $parts = explode('\\', get_class($this)); - $class = preg_replace('/ImportRowModifier/', '', array_pop($parts)); // right? + $class = preg_replace('/^PropertyModifier/', '', array_pop($parts)); // right? if (array_shift($parts) === 'Icinga' && array_shift($parts) === 'Module') { $module = array_shift($parts);