aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-06-07 19:15:31 +0000
committerBrice Maron <brice@bmaron.net>2012-06-07 19:15:31 +0000
commit0f7fdd414896ddfd1a5cd600d982f38c2b926ed8 (patch)
tree776769f4ac5d146ee5ed09fe75aa1d8adc900455
parentcf02f3c1078b4b46fbf20d6269759b2b9b55aed8 (diff)
downloadnextcloud-server-0f7fdd414896ddfd1a5cd600d982f38c2b926ed8.tar.gz
nextcloud-server-0f7fdd414896ddfd1a5cd600d982f38c2b926ed8.zip
ReAdd possibility to load existing app folders
-rw-r--r--lib/base.php5
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)){