aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-02-22 18:56:09 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-02-22 18:56:09 +0000
commitb27add94f8eb36d5e740afadf5306c48873736f9 (patch)
treec6cfecef18aea66c956a8a36606014ec483b2ec4 /phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php
parent84f795e9fbd172924280593d575bf4587c9b40e5 (diff)
downloadforums-b27add94f8eb36d5e740afadf5306c48873736f9.tar
forums-b27add94f8eb36d5e740afadf5306c48873736f9.tar.gz
forums-b27add94f8eb36d5e740afadf5306c48873736f9.tar.bz2
forums-b27add94f8eb36d5e740afadf5306c48873736f9.tar.xz
forums-b27add94f8eb36d5e740afadf5306c48873736f9.zip
$template to phpbb::$template
git-svn-id: file:///svn/phpbb/trunk@9337 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.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php b/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php
index e70500e797..a27909baee 100644
--- a/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php
+++ b/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php
@@ -92,9 +92,10 @@ class phpbb_recaptcha extends phpbb_default_captcha implements phpbb_captcha_plu
foreach ($captcha_vars as $captcha_var => $template_var)
{
$var = request_var($captcha_var, (isset(phpbb::$config[$captcha_var])) ? (string) phpbb::$config[$captcha_var] : '');
- $template->assign_var($template_var, $var);
+ phpbb::$template->assign_var($template_var, $var);
}
- $template->assign_vars(array(
+
+ phpbb::$template->assign_vars(array(
'CAPTCHA_PREVIEW' => $this->get_demo_template($id),
'CAPTCHA_NAME' => $this->get_class_name(),
));
@@ -117,18 +118,18 @@ class phpbb_recaptcha extends phpbb_default_captcha implements phpbb_captcha_plu
function get_template()
{
- $template->set_filenames(array(
- 'captcha' => 'captcha_recaptcha.html')
- );
+ phpbb::$template->set_filenames(array(
+ 'captcha' => 'captcha_recaptcha.html',
+ ));
- $template->assign_vars(array(
+ phpbb::$template->assign_vars(array(
'RECAPTCHA_SERVER' => self::recaptcha_server,
'RECAPTCHA_PUBKEY' => isset(phpbb::$config['recaptcha_pubkey']) ? phpbb::$config['recaptcha_pubkey'] : '',
'RECAPTCHA_ERRORGET' => '',
'S_RECAPTCHA_AVAILABLE' => self::is_available(),
));
- return $template->assign_display('captcha');
+ return phpbb::$template->assign_display('captcha');
}
function get_demo_template($id)