deleting the constructor means refining the init call. ;)

git-svn-id: file:///svn/phpbb/trunk@4120 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2003-06-13 16:45:07 +00:00
parent dee0f40fd2
commit fc82dab423
2 changed files with 4 additions and 2 deletions

View file

@ -184,7 +184,8 @@ $user = new user();
$auth = new auth(); $auth = new auth();
$cache = new acm(); $cache = new acm();
$template = new template(); $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 // Grab global variables, re-cache if necessary
if ($config = $cache->get('config')) if ($config = $cache->get('config'))

View file

@ -576,7 +576,8 @@ else
include($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx); include($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);
// Instantiate the database // 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 // Load the appropriate schema and basic data
$dbms_schema = 'schemas/' . $available_dbms[$dbms]['SCHEMA'] . '_schema.sql'; $dbms_schema = 'schemas/' . $available_dbms[$dbms]['SCHEMA'] . '_schema.sql';