mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/12960] Remove not needed extra language variable
PHPBB3-12960
This commit is contained in:
parent
d1e2e39469
commit
e83f25a448
2 changed files with 2 additions and 3 deletions
|
@ -68,7 +68,6 @@ class incomplete extends captcha_abstract
|
||||||
*/
|
*/
|
||||||
public function init($type)
|
public function init($type)
|
||||||
{
|
{
|
||||||
$this->type = (int) $type;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -111,7 +110,7 @@ class incomplete extends captcha_abstract
|
||||||
$contact_link = phpbb_get_board_contact_link($this->config, $this->phpbb_root_path, $this->phpEx);
|
$contact_link = phpbb_get_board_contact_link($this->config, $this->phpbb_root_path, $this->phpEx);
|
||||||
|
|
||||||
$this->template->assign_vars([
|
$this->template->assign_vars([
|
||||||
'CONFIRM_LANG' => $this->type != CONFIRM_POST ? 'CONFIRM_INCOMPLETE' : 'POST_CONFIRM_INCOMPLETE',
|
'CONFIRM_LANG' => 'CONFIRM_INCOMPLETE',
|
||||||
'CONTACT_LINK' => $contact_link,
|
'CONTACT_LINK' => $contact_link,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -81,6 +81,6 @@ class phpbb_captcha_incomplete_test extends phpbb_test_case
|
||||||
|
|
||||||
$this->incomplete_captcha->init(CONFIRM_POST);
|
$this->incomplete_captcha->init(CONFIRM_POST);
|
||||||
$this->assertSame('captcha_incomplete.html', $this->incomplete_captcha->get_template());
|
$this->assertSame('captcha_incomplete.html', $this->incomplete_captcha->get_template());
|
||||||
$this->assertEquals('POST_CONFIRM_INCOMPLETE', $this->assigned_vars['CONFIRM_LANG']);
|
$this->assertEquals('CONFIRM_INCOMPLETE', $this->assigned_vars['CONFIRM_LANG']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue