Skip to content

Commit

Permalink
MDL-14864 Removed old $db variable, replaced by global $DB. This was …
Browse files Browse the repository at this point in the history
…breaking install on pgsql database.
  • Loading branch information
nicolasconnault committed Jun 13, 2008
1 parent 1f9ca53 commit 08d9fb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.php
Expand Up @@ -643,7 +643,7 @@
//==========================================================================//

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.
Expand Down Expand Up @@ -794,7 +794,7 @@ function form_table($nextstage, $formaction, $databases) {
<td colspan="2">
<?php
error_reporting(0); // Hide errors
$dbconnected = $db->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
Expand Down

0 comments on commit 08d9fb3

Please sign in to comment.