From eadb6cb5181fbf17079c2460e63ce0dc6e623968 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 4 Jun 2014 22:59:48 +0000 Subject: [PATCH] bootstrapping: allow to retrieve a modules base... ...directory if it has been loaded but neither enabled nor installed. refs #6411 --- library/Icinga/Application/Modules/Manager.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/Icinga/Application/Modules/Manager.php b/library/Icinga/Application/Modules/Manager.php index a6ca914da..c0e835c8d 100644 --- a/library/Icinga/Application/Modules/Manager.php +++ b/library/Icinga/Application/Modules/Manager.php @@ -331,6 +331,10 @@ class Manager */ public function getModuleDir($name, $subdir = '') { + if ($this->hasLoaded($name)) { + return $this->getModule($name)->getBaseDir() . $subdir; + } + if ($this->hasEnabled($name)) { return $this->enabledDirs[$name]. $subdir; }