From 621e5617321d44281d92f33561b44783c5b5c619 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sat, 14 Nov 2015 00:22:50 +0100 Subject: [PATCH] ImportSourceHook: look better for new web2 hooks --- library/Director/Web/Hook/ImportSourceHook.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/Director/Web/Hook/ImportSourceHook.php b/library/Director/Web/Hook/ImportSourceHook.php index 0a3736fe..f605781f 100644 --- a/library/Director/Web/Hook/ImportSourceHook.php +++ b/library/Director/Web/Hook/ImportSourceHook.php @@ -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); } }