From: stronk7 Date: Mon, 16 Jun 2008 16:20:45 +0000 (+0000) Subject: Use some more $DB in installer. Like rest of db accesses. Just a sintax thing. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b553527e996d31f22d712560c82c54429b7a7456;p=moodle.git Use some more $DB in installer. Like rest of db accesses. Just a sintax thing. --- diff --git a/install.php b/install.php index 55ad1b25b9..9d133724ae 100644 --- a/install.php +++ b/install.php @@ -459,9 +459,9 @@ if ($nextstage == SAVE) { $str .= '$CFG = new stdClass();'."\r\n"; // prevent PHP5 strict warnings $str .= "\r\n"; - $database = $databases[$INSTALL['dbtype']]; - $database->connect($INSTALL['dbhost'], $INSTALL['dbuser'], $INSTALL['dbpass'], $INSTALL['dbname'], false, $INSTALL['prefix']); - $dbconfig = $database->export_dbconfig(); + $DB = $databases[$INSTALL['dbtype']]; + $DB->connect($INSTALL['dbhost'], $INSTALL['dbuser'], $INSTALL['dbpass'], $INSTALL['dbname'], false, $INSTALL['prefix']); + $dbconfig = $DB->export_dbconfig(); $dbconfig->persistent = false; foreach ($dbconfig as $key=>$value) {