1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/16054] Restore ability to login from any template.

Moving the login form's add_form_key() work into page_header(), so that the
template variables required for presenting a login form are again available
to any template that chooses to consume them.

PHPBB3-16054
This commit is contained in:
EA117
2019-07-28 15:15:39 -05:00
parent ae62bc4642
commit 792882ef63
3 changed files with 4 additions and 12 deletions

View File

@@ -211,9 +211,6 @@ if ($show_birthdays)
$template->assign_block_vars_array('birthdays', $birthdays);
}
// Add form token for login box
add_form_key('login', '_LOGIN');
// Assign index specific vars
$template->assign_vars(array(
'TOTAL_POSTS' => $user->lang('TOTAL_POSTS_COUNT', (int) $config['num_posts']),