Remember the app root information.
This commit is contained in:
parent
19bb4e83c9
commit
bf09edcbf1
1 changed files with 5 additions and 1 deletions
|
@ -350,9 +350,13 @@ class OC_App{
|
|||
|
||||
|
||||
protected static function findAppInDirectories($appid) {
|
||||
static $app_dir = array();
|
||||
if (isset($app_dir[$appid])) {
|
||||
return $app_dir[$appid];
|
||||
}
|
||||
foreach(OC::$APPSROOTS as $dir) {
|
||||
if(file_exists($dir['path'].'/'.$appid)) {
|
||||
return $dir;
|
||||
return $app_dir[$appid]=$dir;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue