ImportSourceHook: look better for new web2 hooks

This commit is contained in:
Thomas Gelf 2015-11-14 00:22:50 +01:00
parent 5287e58fea
commit 621e561732
1 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,9 @@ abstract class ImportSourceHook
if (array_shift($parts) === 'Icinga' && array_shift($parts) === 'Module') {
$module = array_shift($parts);
if ($module !== 'Director') {
if ($class === '') {
return sprintf('%s module', $module);
}
return sprintf('%s (%s)', $class, $module);
}
}