mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02: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
@ -331,6 +331,10 @@ class Manager
|
|||||||
*/
|
*/
|
||||||
public function getModuleDir($name, $subdir = '')
|
public function getModuleDir($name, $subdir = '')
|
||||||
{
|
{
|
||||||
|
if ($this->hasLoaded($name)) {
|
||||||
|
return $this->getModule($name)->getBaseDir() . $subdir;
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->hasEnabled($name)) {
|
if ($this->hasEnabled($name)) {
|
||||||
return $this->enabledDirs[$name]. $subdir;
|
return $this->enabledDirs[$name]. $subdir;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user