From e56c3165764bd79c4067e89d477f9d7007f2818d Mon Sep 17 00:00:00 2001 From: Kees Huiberts Date: Thu, 21 Oct 2010 19:38:01 +0200 Subject: [PATCH] Fixed small bug, added global $SERVERROOT to OC_UTIL --- inc/lib_base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/lib_base.php b/inc/lib_base.php index 3f7a98d7ac..3afbafc903 100644 --- a/inc/lib_base.php +++ b/inc/lib_base.php @@ -31,7 +31,6 @@ date_default_timezone_set('Europe/Berlin'); ini_set('arg_separator.output','&'); ini_set('session.cookie_httponly','1;'); session_start(); - // calculate the documentroot $SERVERROOT=substr(__FILE__,0,-17); $DOCUMENTROOT=realpath($_SERVER['DOCUMENT_ROOT']); @@ -119,6 +118,7 @@ class OC_UTIL { if(self::$fsSetup){//setting up the filesystem twice can only lead to trouble return false; } + global $SERVERROOT; global $CONFIG_DATADIRECTORY_ROOT; global $CONFIG_DATADIRECTORY; global $CONFIG_BACKUPDIRECTORY;