diff options
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index 51dee60d672..93b8e0b584d 100644 --- a/lib/base.php +++ b/lib/base.php @@ -90,12 +90,19 @@ if(substr($scriptName,-1)=='/'){ } $WEBROOT=substr($scriptName,0,strlen($scriptName)-strlen($SUBURI)); - +OC::$SERVERROOT=$SERVERROOT; +OC::$WEBROOT=$WEBROOT; if($WEBROOT!='' and $WEBROOT[0]!=='/'){ $WEBROOT='/'.$WEBROOT; } +// We are going to use OC::* instead of globels soon +OC::$WEBROOT = $WEBROOT; +OC::$SERVERROOT = $SERVERROOT; +OC::$DOCUMENTROOT = $DOCUMENTROOT; +OC::$SUBURI = $SUBURI; + // set the right include path set_include_path($SERVERROOT.'/lib'.PATH_SEPARATOR.$SERVERROOT.'/config'.PATH_SEPARATOR.$SERVERROOT.'/3rdparty'.PATH_SEPARATOR.get_include_path().PATH_SEPARATOR.$SERVERROOT); |