aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-07-14 00:56:37 -0400
committerJoas Schilling <nickvergessen@gmx.de>2013-07-14 10:10:05 -0400
commit057d860d07fe829104aa938338830787415bc1c6 (patch)
tree01d82d5623b86201f6dfba268fcaccb347ed0c7c /phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
parent1e37d97909ccf52b08e2a809ea8a9365c824d8de (diff)
downloadforums-057d860d07fe829104aa938338830787415bc1c6.tar
forums-057d860d07fe829104aa938338830787415bc1c6.tar.gz
forums-057d860d07fe829104aa938338830787415bc1c6.tar.bz2
forums-057d860d07fe829104aa938338830787415bc1c6.tar.xz
forums-057d860d07fe829104aa938338830787415bc1c6.zip
[ticket/11696] Rename db_tools.php so it can be autoloaded
PHPBB3-11696
Diffstat (limited to 'phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php')
-rw-r--r--phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php b/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
index ec7636f511..6843f25d72 100644
--- a/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
+++ b/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
@@ -110,12 +110,8 @@ class phpbb_captcha_qa
*/
static public function is_installed()
{
- global $db, $phpbb_root_path, $phpEx;
+ global $db;
- if (!class_exists('phpbb_db_tools', false))
- {
- include("$phpbb_root_path/includes/db/db_tools.$phpEx");
- }
$db_tool = new phpbb_db_tools($db);
return $db_tool->sql_table_exists(CAPTCHA_QUESTIONS_TABLE);
@@ -297,12 +293,8 @@ class phpbb_captcha_qa
*/
function install()
{
- global $db, $phpbb_root_path, $phpEx;
+ global $db;
- if (!class_exists('phpbb_db_tools'))
- {
- include("$phpbb_root_path/includes/db/db_tools.$phpEx");
- }
$db_tool = new phpbb_db_tools($db);
$tables = array(CAPTCHA_QUESTIONS_TABLE, CAPTCHA_ANSWERS_TABLE, CAPTCHA_QA_CONFIRM_TABLE);