mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-06-08 16:12:43 -04:00
bootstrapping: allow to retrieve a modules base...
...directory if it has been loaded but neither enabled nor installed. refs #6411
This commit is contained in:
parent
0e6aecbd43
commit
eadb6cb518
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue