aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/common.php3
-rw-r--r--phpBB/install/install.php3
2 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index 36d0d3377f..767e400cb5 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -184,7 +184,8 @@ $user = new user();
$auth = new auth();
$cache = new acm();
$template = new template();
-$db = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false);
+$db = new sql_db();
+$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false);
// Grab global variables, re-cache if necessary
if ($config = $cache->get('config'))
diff --git a/phpBB/install/install.php b/phpBB/install/install.php
index 693fb55a0c..ae742cc6e7 100644
--- a/phpBB/install/install.php
+++ b/phpBB/install/install.php
@@ -576,7 +576,8 @@ else
include($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);
// Instantiate the database
- $db = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false);
+ $db = new sql_db();
+ $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false);
// Load the appropriate schema and basic data
$dbms_schema = 'schemas/' . $available_dbms[$dbms]['SCHEMA'] . '_schema.sql';