From: Martin Date: Tue, 2 Aug 2011 15:23:14 +0000 (+0200) Subject: require_once -> require in WCF::initDB() - prevents file not being loaded if required... X-Git-Tag: 2.0.0_Beta_1~1918^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=efb3d7d1f76a951e6945eb73f1eac8467dfc74fd;p=GitHub%2FWoltLab%2FWCF.git require_once -> require in WCF::initDB() - prevents file not being loaded if required before --- diff --git a/wcfsetup/install/files/lib/system/WCF.class.php b/wcfsetup/install/files/lib/system/WCF.class.php index 101352ccba..3f800f0d49 100644 --- a/wcfsetup/install/files/lib/system/WCF.class.php +++ b/wcfsetup/install/files/lib/system/WCF.class.php @@ -280,7 +280,7 @@ class WCF { $dbHost = $dbUser = $dbPassword = $dbName = ''; $dbPort = 0; $dbClass = 'wcf\system\database\MySQLDatabase'; - require_once(WCF_DIR.'config.inc.php'); + require(WCF_DIR.'config.inc.php'); // create database connection self::$dbObj = new $dbClass($dbHost, $dbUser, $dbPassword, $dbName, $dbPort);