diff options
author | Brice Maron <brice@bmaron.net> | 2012-06-07 19:15:31 +0000 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2012-06-07 19:15:31 +0000 |
commit | 0f7fdd414896ddfd1a5cd600d982f38c2b926ed8 (patch) | |
tree | 776769f4ac5d146ee5ed09fe75aa1d8adc900455 | |
parent | cf02f3c1078b4b46fbf20d6269759b2b9b55aed8 (diff) | |
download | nextcloud-server-0f7fdd414896ddfd1a5cd600d982f38c2b926ed8.tar.gz nextcloud-server-0f7fdd414896ddfd1a5cd600d982f38c2b926ed8.zip |
ReAdd possibility to load existing app folders
-rw-r--r-- | lib/base.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index 0d205c8f78c..9f2925fa314 100644 --- a/lib/base.php +++ b/lib/base.php @@ -173,6 +173,11 @@ class OC{ } OC::$APPSROOTS[] = array('path'=> $path, 'web' => $web_a[$k]); } + }elseif(file_exists(OC::$SERVERROOT.'/apps')){ + OC::$APPSROOTS[] = array('path'=> OC::$SERVERROOT.'/apps', 'web' => OC::$WEBROOT.'/apps/'); + }elseif(file_exists(OC::$SERVERROOT.'/../apps')){ + OC::$APPSROOTS[] = array('path'=> rtrim(dirname(OC::$SERVERROOT), '/').'/apps', 'web' => rtrim(dirname(OC::$WEBROOT), '/').'/apps/'); + OC::$APPSROOT=rtrim(dirname(OC::$SERVERROOT), '/'); } if(empty(OC::$APPSROOTS)){ |