]> source.dussan.org Git - nextcloud-server.git/commitdiff
Copying globals to OC::*
authorJakob Sack <kde@jakobsack.de>
Wed, 10 Aug 2011 09:18:35 +0000 (11:18 +0200)
committerJakob Sack <kde@jakobsack.de>
Wed, 10 Aug 2011 09:18:35 +0000 (11:18 +0200)
lib/base.php

index 51dee60d67276be60a5025b600c56f6afb7485f9..f59e375e76364e59d2a106a4e7d5a13bc942f3c9 100644 (file)
@@ -96,6 +96,12 @@ 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);