1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 08:47:45 +02:00

[ticket/11854] Rename captchas.factory service to captcha.factory

PHPBB3-11854
This commit is contained in:
Tristan Darricau
2014-08-09 15:57:01 +02:00
parent d73d606f11
commit b91abf1a0b
10 changed files with 11 additions and 11 deletions

View File

@@ -38,7 +38,7 @@ class ucp_confirm
{
global $db, $user, $phpbb_root_path, $config, $phpEx, $phpbb_container;
$captcha = $phpbb_container->get('captchas.factory')->get_instance($config['captcha_plugin']);
$captcha = $phpbb_container->get('captcha.factory')->get_instance($config['captcha_plugin']);
$captcha->init(request_var('type', 0));
$captcha->execute();

View File

@@ -197,7 +197,7 @@ class ucp_login_link
{
case LOGIN_ERROR_ATTEMPTS:
$captcha = $phpbb_container->get('captchas.factory')->get_instance($config['captcha_plugin']);
$captcha = $phpbb_container->get('captcha.factory')->get_instance($config['captcha_plugin']);
$captcha->init(CONFIRM_LOGIN);
$template->assign_vars(array(

View File

@@ -182,7 +182,7 @@ class ucp_register
// The CAPTCHA kicks in here. We can't help that the information gets lost on language change.
if ($config['enable_confirm'])
{
$captcha = $phpbb_container->get('captchas.factory')->get_instance($config['captcha_plugin']);
$captcha = $phpbb_container->get('captcha.factory')->get_instance($config['captcha_plugin']);
$captcha->init(CONFIRM_REG);
}