summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorFrank Karlitschek <karlitschek@kde.org>2012-03-01 15:19:44 +0100
committerFrank Karlitschek <karlitschek@kde.org>2012-03-01 15:19:44 +0100
commitd29a02a65a4cc6c7adda17260327e2fe8547e88f (patch)
tree10a3b3bf3574bbe538d1e3c47b36e36053f69033 /lib/base.php
parent0a9b0ee382e9c284f8de4f534d7d0a7655187d57 (diff)
downloadnextcloud-server-d29a02a65a4cc6c7adda17260327e2fe8547e88f.tar.gz
nextcloud-server-d29a02a65a4cc6c7adda17260327e2fe8547e88f.zip
undo the change of the webroot detection. seams to be buggy
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php
index d4dbdcde9b6..67d30f8780a 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -159,9 +159,9 @@ class OC{
OC::$SUBURI=OC::$SUBURI.'index.php';
}
}
-// OC::$WEBROOT=substr($scriptName,0,strlen($scriptName)-strlen(OC::$SUBURI));
+ OC::$WEBROOT=substr($scriptName,0,strlen($scriptName)-strlen(OC::$SUBURI));
// try a new way to detect the WEBROOT which is simpler and also works with the app directory outside the owncloud folder. let´s see if this works for everybody
- OC::$WEBROOT=substr(OC::$SERVERROOT,strlen(OC::$DOCUMENTROOT));
+// OC::$WEBROOT=substr(OC::$SERVERROOT,strlen(OC::$DOCUMENTROOT));
if(OC::$WEBROOT!='' and OC::$WEBROOT[0]!=='/'){