aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin <robin@Amaya.(none)>2010-05-21 19:50:18 +0200
committerRobin <robin@Amaya.(none)>2010-05-21 19:50:18 +0200
commit086f060b9ebb16d0f28b50e472d849ba5332483a (patch)
tree6bc79c69f347a12870f7c3e4f7aebb2eb6c95678
parent78e54e1909506cb6606354a4b6e9120f7c4475b7 (diff)
downloadnextcloud-server-086f060b9ebb16d0f28b50e472d849ba5332483a.tar.gz
nextcloud-server-086f060b9ebb16d0f28b50e472d849ba5332483a.zip
fix when owncloud is installed in the root of a server
-rwxr-xr-xinc/lib_base.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/lib_base.php b/inc/lib_base.php
index 303809bdd6b..e6c02722b49 100755
--- a/inc/lib_base.php
+++ b/inc/lib_base.php
@@ -37,9 +37,10 @@ $DOCUMENTROOT=$_SERVER['DOCUMENT_ROOT'];
$SERVERROOT=str_replace("\\",'/',$SERVERROOT);
$count=strlen($DOCUMENTROOT);
$WEBROOT=substr($SERVERROOT,$count);
-if($WEBROOT{0}!=='/'){
+if($WEBROOT{0}!=='/' and $WEBROOT!=''){
$WEBROOT='/'.$WEBROOT;
}
+// $WEBROOT='http://localhost'.$WEBROOT;
// set the right include path
// set_include_path(get_include_path().PATH_SEPARATOR.$SERVERROOT.PATH_SEPARATOR.$SERVERROOT.'/inc'.PATH_SEPARATOR.$SERVERROOT.'/config');