]> git.mjollnir.org Git - moodle.git/commitdiff
Use some more $DB in installer. Like rest of db accesses. Just a sintax thing.
authorstronk7 <stronk7>
Mon, 16 Jun 2008 16:20:45 +0000 (16:20 +0000)
committerstronk7 <stronk7>
Mon, 16 Jun 2008 16:20:45 +0000 (16:20 +0000)
install.php

index 55ad1b25b99f05ea7b8aa5f74bc58ca34bf3d4db..9d133724ae67d55819103714317ea09726a959e8 100644 (file)
@@ -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) {