mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 07:47:34 +02:00
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:
@@ -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'))
|
||||||
|
@@ -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';
|
||||||
|
Reference in New Issue
Block a user