From: nicolasconnault Date: Fri, 13 Jun 2008 14:45:11 +0000 (+0000) Subject: MDL-14864 Removed old $db variable, replaced by global $DB. This was breaking install... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=08d9fb369cd96cef7f887efc994c5ae0b4ed356f;p=moodle.git MDL-14864 Removed old $db variable, replaced by global $DB. This was breaking install on pgsql database. --- diff --git a/install.php b/install.php index dbece00c0d..eb3413a0a0 100644 --- a/install.php +++ b/install.php @@ -643,7 +643,7 @@ if ($nextstage == SAVE) { //==========================================================================// function form_table($nextstage, $formaction, $databases) { - global $INSTALL; + global $INSTALL, $DB; /// Print the standard form if we aren't in the DOWNLOADLANG page /// because it has its own form. @@ -794,7 +794,7 @@ function form_table($nextstage, $formaction, $databases) { Connect($INSTALL['dbhost'],$INSTALL['dbuser'],$INSTALL['dbpass'],$INSTALL['dbname']); + $dbconnected = $DB->Connect($INSTALL['dbhost'],$INSTALL['dbuser'],$INSTALL['dbpass'],$INSTALL['dbname'], false, $INSTALL['prefix']); error_reporting(38911); // Show errors if ($dbconnected) { /// Execute environment check, printing results