diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2012-10-29 09:34:51 -0400 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-10-29 14:48:43 -0400 |
commit | 14a6e5ec73779d18cc6f09cb3b1cb4fd08f024f8 (patch) | |
tree | 3c7363c679ce904d77d6be3ccaae25e0b0a7d266 /phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php | |
parent | 60d9538b14a3ec8f0a39716bde3d13d31e1ed97d (diff) | |
download | forums-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_recaptcha_plugin.php')
-rw-r--r-- | phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php b/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php index 70c24a8c30..55bebf9443 100644 --- a/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php +++ b/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php @@ -60,7 +60,7 @@ class phpbb_recaptcha extends phpbb_default_captcha return $instance; } - function is_available() + public static function is_available() { global $config, $user; $user->add_lang('captcha_recaptcha'); @@ -75,7 +75,7 @@ class phpbb_recaptcha extends phpbb_default_captcha return true; } - function get_name() + public static function get_name() { return 'CAPTCHA_RECAPTCHA'; } @@ -163,7 +163,7 @@ class phpbb_recaptcha extends phpbb_default_captcha 'RECAPTCHA_SERVER' => $this->recaptcha_server, 'RECAPTCHA_PUBKEY' => isset($config['recaptcha_pubkey']) ? $config['recaptcha_pubkey'] : '', 'RECAPTCHA_ERRORGET' => '', - 'S_RECAPTCHA_AVAILABLE' => $this->is_available(), + 'S_RECAPTCHA_AVAILABLE' => self::is_available(), 'S_CONFIRM_CODE' => true, 'S_TYPE' => $this->type, 'L_CONFIRM_EXPLAIN' => $explain, |