PropertyModifierHook: fix default name string

This commit is contained in:
Thomas Gelf 2016-03-06 00:16:44 +01:00
parent b07a3e724c
commit d8f721081e
1 changed files with 1 additions and 1 deletions

View File

@ -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);