mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
#50675 ; also don't reset the captcha on login
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10094 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
19086ba572
commit
4c6360f5b5
1 changed files with 2 additions and 2 deletions
|
@ -2082,7 +2082,7 @@ function generate_pagination($base_url, $num_items, $per_page, $start_item, $add
|
||||||
}
|
}
|
||||||
|
|
||||||
$on_page = floor($start_item / $per_page) + 1;
|
$on_page = floor($start_item / $per_page) + 1;
|
||||||
$url_delim = (strpos($base_url, '?') === false) ? '?' : '&';
|
$url_delim = (strpos($base_url, '?') === false) ? '?' : ((strpos($base_url, '?') === strlen($base_url) - 1) ? '' : '&');
|
||||||
|
|
||||||
$page_string = ($on_page == 1) ? '<strong>1</strong>' : '<a href="' . $base_url . '">1</a>';
|
$page_string = ($on_page == 1) ? '<strong>1</strong>' : '<a href="' . $base_url . '">1</a>';
|
||||||
|
|
||||||
|
@ -2949,7 +2949,7 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
|
||||||
|
|
||||||
$captcha = phpbb_captcha_factory::get_instance($config['captcha_plugin']);
|
$captcha = phpbb_captcha_factory::get_instance($config['captcha_plugin']);
|
||||||
$captcha->init(CONFIRM_LOGIN);
|
$captcha->init(CONFIRM_LOGIN);
|
||||||
$captcha->reset();
|
// $captcha->reset();
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'CAPTCHA_TEMPLATE' => $captcha->get_template(),
|
'CAPTCHA_TEMPLATE' => $captcha->get_template(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue