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 = '')
|
||||
{
|
||||
if ($this->hasLoaded($name)) {
|
||||
return $this->getModule($name)->getBaseDir() . $subdir;
|
||||
}
|
||||
|
||||
if ($this->hasEnabled($name)) {
|
||||
return $this->enabledDirs[$name]. $subdir;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue