Skip to content
Snippets Groups Projects
Commit 0a9b0ee3 authored by Frank Karlitschek's avatar Frank Karlitschek
Browse files

change the detection of the webroot. it is simpler now and also works for app...

change the detection of the webroot. it is simpler now and also works for app directories outside the owncloud folder. works for me and hopefully for everybody else too
parent a829ce69
Branches
No related tags found
No related merge requests found
......@@ -159,7 +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));
if(OC::$WEBROOT!='' and OC::$WEBROOT[0]!=='/'){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment