aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-09-01 15:08:04 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-09-01 15:08:04 +0000
commit604696f9a8abd2c743336e3d20ab85746f094637 (patch)
tree3b453fe2a9c0f4beac61b53c8442362d9122b43b /phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php
parent254dee274c0e2753edb171fcb71c71c8ed47222e (diff)
downloadforums-604696f9a8abd2c743336e3d20ab85746f094637.tar
forums-604696f9a8abd2c743336e3d20ab85746f094637.tar.gz
forums-604696f9a8abd2c743336e3d20ab85746f094637.tar.bz2
forums-604696f9a8abd2c743336e3d20ab85746f094637.tar.xz
forums-604696f9a8abd2c743336e3d20ab85746f094637.zip
Correctly assign board administrator email for L_CONFIRM_EXPLAIN in captcha plugins.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10085 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php')
-rw-r--r--phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php b/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php
index 89d44826d8..2d37b13a4f 100644
--- a/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php
+++ b/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php
@@ -54,7 +54,7 @@ class phpbb_recaptcha extends phpbb_default_captcha
$user->add_lang('captcha_recaptcha');
return (isset($config['recaptcha_pubkey']) && !empty($config['recaptcha_pubkey']));
}
-
+
/**
* API function
*/
@@ -143,6 +143,8 @@ class phpbb_recaptcha extends phpbb_default_captcha
}
else
{
+ $explain = $user->lang(($this->type != CONFIRM_POST) ? 'CONFIRM_EXPLAIN' : 'POST_CONFIRM_EXPLAIN', '<a href="mailto:' . htmlspecialchars($config['board_contact']) . '">', '</a>');
+
$template->assign_vars(array(
'RECAPTCHA_SERVER' => $this->recaptcha_server,
'RECAPTCHA_PUBKEY' => isset($config['recaptcha_pubkey']) ? $config['recaptcha_pubkey'] : '',
@@ -150,6 +152,7 @@ class phpbb_recaptcha extends phpbb_default_captcha
'S_RECAPTCHA_AVAILABLE' => $this->is_available(),
'S_CONFIRM_CODE' => true,
'S_TYPE' => $this->type,
+ 'L_CONFIRM_EXPLAIN' => $explain,
));
return 'captcha_recaptcha.html';