diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-06-28 21:54:33 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-06-28 22:11:04 +0200 |
commit | bf09edcbf1775115067611b85b954fbabad74ba3 (patch) | |
tree | b495646b0922d660f1d210904ac21bd8ccebdad7 /lib | |
parent | 19bb4e83c994a31578d35d8a43a6ab4b180858d7 (diff) | |
download | nextcloud-server-bf09edcbf1775115067611b85b954fbabad74ba3.tar.gz nextcloud-server-bf09edcbf1775115067611b85b954fbabad74ba3.zip |
Remember the app root information.
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/app.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/app.php b/lib/app.php index 61566ed7522..d1f12594a25 100755 --- a/lib/app.php +++ b/lib/app.php @@ -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; } } } |