1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-09-01 12:22:58 +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

@@ -198,9 +198,6 @@ if (!($forum_data['forum_type'] == FORUM_POST || (($forum_data['forum_flags'] &
// We also make this circumstance available to the template in case we want to display a notice. ;)
if (!$auth->acl_gets('f_read', 'f_list_topics', $forum_id))
{
// Add form token for login box
add_form_key('login', '_LOGIN');
$template->assign_vars(array(
'S_NO_READ_ACCESS' => true,
));