undo the change of the webroot detection. seams to be buggy

This commit is contained in:
Frank Karlitschek 2012-03-01 15:19:44 +01:00
parent 0a9b0ee382
commit d29a02a65a
1 changed files with 2 additions and 2 deletions

View File

@ -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]!=='/'){