require_once -> require in WCF::initDB() - prevents file not being loaded if required...
authorMartin <mpoehlmann@songpier.com>
Tue, 2 Aug 2011 15:23:14 +0000 (17:23 +0200)
committerMartin <mpoehlmann@songpier.com>
Tue, 2 Aug 2011 15:23:14 +0000 (17:23 +0200)
wcfsetup/install/files/lib/system/WCF.class.php

index 101352ccba53dd90857b35b47c48d4e590cce3ce..3f800f0d4967745bbebbdb04a0e1adbf0ff9a4eb 100644 (file)
@@ -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);