mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/10611] Generate db_tools instance in acp_database module.
PHPBB3-10611
This commit is contained in:
parent
275dabbc4f
commit
6036b948ff
1 changed files with 7 additions and 0 deletions
|
@ -21,6 +21,7 @@ if (!defined('IN_PHPBB'))
|
||||||
*/
|
*/
|
||||||
class acp_database
|
class acp_database
|
||||||
{
|
{
|
||||||
|
var $db_tools;
|
||||||
var $u_action;
|
var $u_action;
|
||||||
|
|
||||||
function main($id, $mode)
|
function main($id, $mode)
|
||||||
|
@ -28,6 +29,12 @@ class acp_database
|
||||||
global $cache, $db, $user, $auth, $template, $table_prefix;
|
global $cache, $db, $user, $auth, $template, $table_prefix;
|
||||||
global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
|
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');
|
$user->add_lang('acp/database');
|
||||||
|
|
||||||
$this->tpl_name = 'acp_database';
|
$this->tpl_name = 'acp_database';
|
||||||
|
|
Loading…
Add table
Reference in a new issue