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:
Thomas Gelf 2014-06-04 22:59:48 +00:00
parent 0e6aecbd43
commit eadb6cb518
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}