From 03f081ce33b41f528c39b35cfbbfaa7fc6677f4b Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 20 Aug 2013 15:04:50 +0200 Subject: [PATCH] Module/Autoloader: Register Icinga\Module\ namespace refs #4586 --- library/Icinga/Application/Modules/Module.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Icinga/Application/Modules/Module.php b/library/Icinga/Application/Modules/Module.php index 86f0546e7..1bc88c84b 100644 --- a/library/Icinga/Application/Modules/Module.php +++ b/library/Icinga/Application/Modules/Module.php @@ -272,9 +272,9 @@ class Module $moduleName = ucfirst($this->getName()); $moduleLibraryDir = $this->getLibDir(). '/'. $moduleName; - $this->app->getLoader()->registerNamespace($moduleName, $moduleLibraryDir); + $this->app->getLoader()->registerNamespace('Icinga\\Module\\' . $moduleName, $moduleLibraryDir); if (is_dir($this->getFormDir())) { - $this->app->getLoader()->registerNamespace($moduleName. '\\Form', $this->getFormDir()); + $this->app->getLoader()->registerNamespace('Icinga\\Module\\' . $moduleName. '\\Form', $this->getFormDir()); } }