diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-08-10 11:18:35 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-08-10 11:18:35 +0200 |
commit | c958a44e467dfc2e283efb0815ccae73f4feab87 (patch) | |
tree | 7a283d4196088c24c915ea7c7acb121e01122e70 /lib/base.php | |
parent | 7b653dbca69e1d69898f2ea9b63759a495ef98b0 (diff) | |
download | nextcloud-server-c958a44e467dfc2e283efb0815ccae73f4feab87.tar.gz nextcloud-server-c958a44e467dfc2e283efb0815ccae73f4feab87.zip |
Copying globals to OC::*
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index 51dee60d672..f59e375e763 100644 --- a/lib/base.php +++ b/lib/base.php @@ -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); |