From f353fd2d5780d90f93a13bea11abb55d0a95d232 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 2 Nov 2008 11:36:13 +0000 Subject: 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 --- phpBB/install/install_install.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'phpBB/install') diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php index 1881c9042f..faf569482f 100644 --- a/phpBB/install/install_install.php +++ b/phpBB/install/install_install.php @@ -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) { -- cgit v1.2.1