aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-10-29 09:34:51 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2012-10-29 14:48:43 -0400
commit14a6e5ec73779d18cc6f09cb3b1cb4fd08f024f8 (patch)
tree3c7363c679ce904d77d6be3ccaae25e0b0a7d266 /phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
parent60d9538b14a3ec8f0a39716bde3d13d31e1ed97d (diff)
downloadforums-14a6e5ec73779d18cc6f09cb3b1cb4fd08f024f8.tar
forums-14a6e5ec73779d18cc6f09cb3b1cb4fd08f024f8.tar.gz
forums-14a6e5ec73779d18cc6f09cb3b1cb4fd08f024f8.tar.bz2
forums-14a6e5ec73779d18cc6f09cb3b1cb4fd08f024f8.tar.xz
forums-14a6e5ec73779d18cc6f09cb3b1cb4fd08f024f8.zip
[ticket/11157] Fix remaining captcha spam.
PHPBB3-11157
Diffstat (limited to 'phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php')
-rw-r--r--phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php b/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
index 99813189d7..c005d478a2 100644
--- a/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
+++ b/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
@@ -108,7 +108,7 @@ class phpbb_captcha_qa
/**
* See if the captcha has created its tables.
*/
- function is_installed()
+ public static function is_installed()
{
global $db, $phpbb_root_path, $phpEx;
@@ -124,14 +124,14 @@ class phpbb_captcha_qa
/**
* API function - for the captcha to be available, it must have installed itself and there has to be at least one question in the board's default lang
*/
- function is_available()
+ public static function is_available()
{
global $config, $db, $phpbb_root_path, $phpEx, $user;
// load language file for pretty display in the ACP dropdown
$user->add_lang('captcha_qa');
- if (!phpbb_captcha_qa::is_installed())
+ if (!self::is_installed())
{
return false;
}
@@ -157,7 +157,7 @@ class phpbb_captcha_qa
/**
* API function
*/
- function get_name()
+ public static function get_name()
{
return 'CAPTCHA_QA';
}
@@ -612,7 +612,7 @@ class phpbb_captcha_qa
$user->add_lang('acp/board');
$user->add_lang('captcha_qa');
- if (!$this->is_installed())
+ if (!self::is_installed())
{
$this->install();
}