1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 01:06:48 +02:00

db_tools from static to non-static due to the db dependancy (#31245)

git-svn-id: file:///svn/phpbb/trunk@9044 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2008-11-02 11:36:13 +00:00
parent 6a15c2a936
commit f353fd2d57
2 changed files with 142 additions and 168 deletions

View File

@@ -1185,19 +1185,17 @@ class install_install extends module
$remove_remarks = $available_dbms[$data['dbms']]['COMMENTS'];
$delimiter = $available_dbms[$data['dbms']]['DELIM'];
include(PHPBB_ROOT_PATH . 'includes/db/db_tools.php');
include(PHPBB_ROOT_PATH . 'install/schemas/schema_data.php');
// we must do this so that we can handle the errors
phpbb_db_tools::$return_statements = true;
// we must set return_statements to true so that we can handle the errors
$db_tools = new phpbb_db_tools($db, true);
foreach ($schema_data as $table_name => $table_data)
{
// Change prefix
$table_name = preg_replace('#phpbb_#i', $data['table_prefix'], $table_name);
$statements = phpbb_db_tools::sql_create_table($table_name, $table_data);
$statements = $db_tools->sql_create_table($table_name, $table_data);
foreach ($statements as $sql)
{