From fc82dab423007ff9237033229acf88778537c0b7 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Fri, 13 Jun 2003 16:45:07 +0000 Subject: [PATCH] deleting the constructor means refining the init call. ;) git-svn-id: file:///svn/phpbb/trunk@4120 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/common.php | 3 ++- phpBB/install/install.php | 3 ++- 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';