aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-05-30 13:38:41 +0200
committerAndreas Fischer <bantu@phpbb.com>2012-05-30 13:38:41 +0200
commit6036b948ff8ff02f890d46000aafea5dd157d025 (patch)
treed55164c238b0c5f472cd92652a16dd69ea1c7871 /phpBB
parent275dabbc4f7e412d6f21266d43708635f63384e2 (diff)
downloadforums-6036b948ff8ff02f890d46000aafea5dd157d025.tar
forums-6036b948ff8ff02f890d46000aafea5dd157d025.tar.gz
forums-6036b948ff8ff02f890d46000aafea5dd157d025.tar.bz2
forums-6036b948ff8ff02f890d46000aafea5dd157d025.tar.xz
forums-6036b948ff8ff02f890d46000aafea5dd157d025.zip
[ticket/10611] Generate db_tools instance in acp_database module.
PHPBB3-10611
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/acp/acp_database.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_database.php b/phpBB/includes/acp/acp_database.php
index 62bcd43a47..6380f221f8 100644
--- a/phpBB/includes/acp/acp_database.php
+++ b/phpBB/includes/acp/acp_database.php
@@ -21,6 +21,7 @@ if (!defined('IN_PHPBB'))
*/
class acp_database
{
+ var $db_tools;
var $u_action;
function main($id, $mode)
@@ -28,6 +29,12 @@ class acp_database
global $cache, $db, $user, $auth, $template, $table_prefix;
global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
+ if (!class_exists('phpbb_db_tools'))
+ {
+ require($phpbb_root_path . 'includes/db/db_tools.' . $phpEx);
+ }
+ $this->db_tools = new phpbb_db_tools($db);
+
$user->add_lang('acp/database');
$this->tpl_name = 'acp_database';