From cbb4db46b2ce6ca7be384a05280f3d81751ece77 Mon Sep 17 00:00:00 2001 From: David M Date: Fri, 11 Jan 2008 05:07:33 +0000 Subject: - 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 --- phpBB/install/install_install.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'phpBB/install/install_install.php') diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php index 4dc5696b73..2dfe839939 100755 --- a/phpBB/install/install_install.php +++ b/phpBB/install/install_install.php @@ -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) { -- cgit v1.2.1