mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 02:06:32 +02:00
- use proper OOP for db_tools
- made it all static. If one of you disagree, you are free to change it. I just couldn't think of a reason of having it otherwise... git-svn-id: file:///svn/phpbb/trunk@8319 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1170,17 +1170,15 @@ class install_install extends module
|
||||
include($phpbb_root_path . 'includes/db/db_tools.php');
|
||||
include($phpbb_root_path . 'install/schemas/schema_data.php');
|
||||
|
||||
$tools = new phpbb_db_tools($db);
|
||||
|
||||
// we must do this so that we can handle the errors
|
||||
$tools->return_statements = true;
|
||||
phpbb_db_tools::$return_statements = true;
|
||||
|
||||
foreach ($schema_data as $table_name => $table_data)
|
||||
{
|
||||
// Change prefix
|
||||
$table_name = preg_replace('#phpbb_#i', $data['table_prefix'], $table_name);
|
||||
|
||||
$statements = $tools->sql_create_table($table_name, $table_data);
|
||||
$statements = phpbb_db_tools::sql_create_table($table_name, $table_data);
|
||||
|
||||
foreach ($statements as $sql)
|
||||
{
|
||||
|
Reference in New Issue
Block a user