From efb3d7d1f76a951e6945eb73f1eac8467dfc74fd Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 2 Aug 2011 17:23:14 +0200 Subject: [PATCH] require_once -> require in WCF::initDB() - prevents file not being loaded if required before --- wcfsetup/install/files/lib/system/WCF.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1