Remember the app root information.

This commit is contained in:
Bart Visscher 2012-06-28 21:54:33 +02:00
parent 19bb4e83c9
commit bf09edcbf1
1 changed files with 5 additions and 1 deletions

View File

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