aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/install_install.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2008-01-11 05:07:33 +0000
committerDavid M <davidmj@users.sourceforge.net>2008-01-11 05:07:33 +0000
commitcbb4db46b2ce6ca7be384a05280f3d81751ece77 (patch)
tree4854974209e6ec601af1d1fede3734c196575b37 /phpBB/install/install_install.php
parent35f59ceb9a19bcc6f6ba235d554638e3d31cd5dc (diff)
downloadforums-cbb4db46b2ce6ca7be384a05280f3d81751ece77.tar
forums-cbb4db46b2ce6ca7be384a05280f3d81751ece77.tar.gz
forums-cbb4db46b2ce6ca7be384a05280f3d81751ece77.tar.bz2
forums-cbb4db46b2ce6ca7be384a05280f3d81751ece77.tar.xz
forums-cbb4db46b2ce6ca7be384a05280f3d81751ece77.zip
- 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
Diffstat (limited to 'phpBB/install/install_install.php')
-rwxr-xr-xphpBB/install/install_install.php6
1 files changed, 2 insertions, 4 deletions
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)
{