diff options
author | Bart Visscher <bart@thisnet.nl> | 2011-09-18 19:37:54 +0200 |
---|---|---|
committer | Bart Visscher <bart@thisnet.nl> | 2011-09-18 19:37:54 +0200 |
commit | 82c7598861db175617694891bb9f21b426426225 (patch) | |
tree | fce8fb4717b4cc2a5dc6da8835bdb51b5fb40054 /lib/db.php | |
parent | d5656716f69caa6a1eb98706994ffcb9a08553a7 (diff) | |
download | nextcloud-server-82c7598861db175617694891bb9f21b426426225.tar.gz nextcloud-server-82c7598861db175617694891bb9f21b426426225.zip |
Remove global vars and use the OC static version.
Removed global vars are DOCUMENTROOT, SERVERROOT, SUBURI, WEBROOT and CONFIG_DATADIRECTORY
Diffstat (limited to 'lib/db.php')
-rw-r--r-- | lib/db.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/db.php b/lib/db.php index 414525ae207..0b7065eec8b 100644 --- a/lib/db.php +++ b/lib/db.php @@ -43,8 +43,7 @@ class OC_DB { $CONFIG_DBUSER = OC_Config::getValue( "dbuser", "" );; $CONFIG_DBPASSWORD = OC_Config::getValue( "dbpassword", "" );; $CONFIG_DBTYPE = OC_Config::getValue( "dbtype", "sqlite" );; - global $SERVERROOT; - $datadir=OC_Config::getValue( "datadirectory", "$SERVERROOT/data" ); + $datadir=OC_Config::getValue( "datadirectory", OC::$SERVERROOT."/data" ); // do nothing if the connection already has been established if(!self::$DBConnection){ |