1
0
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:
David M
2008-01-11 05:07:33 +00:00
parent 35f59ceb9a
commit cbb4db46b2
2 changed files with 233 additions and 234 deletions

View File

@@ -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)
{