diff options
author | Marc Alexander <admin@m-a-styles.de> | 2019-08-11 20:02:11 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-08-11 20:02:11 +0200 |
commit | 38e5913338374367d8ac14d6d08c85b7aaa58f27 (patch) | |
tree | 8c0c961e5a216154ecbfc2fece78cb1d18e0ac7e /phpBB/includes/functions.php | |
parent | 48522fd93882cb67fd3f55091273bae186d5094c (diff) | |
parent | 792882ef63977c6b7ca068c65383fb8be8372172 (diff) | |
download | forums-38e5913338374367d8ac14d6d08c85b7aaa58f27.tar forums-38e5913338374367d8ac14d6d08c85b7aaa58f27.tar.gz forums-38e5913338374367d8ac14d6d08c85b7aaa58f27.tar.bz2 forums-38e5913338374367d8ac14d6d08c85b7aaa58f27.tar.xz forums-38e5913338374367d8ac14d6d08c85b7aaa58f27.zip |
Merge pull request #5637 from EA117/ticket/16054
[ticket/16054] Restore ability to login from any template.
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 605afda0bd..c9f589c174 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2526,9 +2526,6 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa )); } - // Add form token for login box - add_form_key($form_name, '_LOGIN'); - $s_hidden_fields = build_hidden_fields($s_hidden_fields); $login_box_template_data = array( @@ -2663,9 +2660,6 @@ function login_forum_box($forum_data) page_header($user->lang['LOGIN']); - // Add form token for login box - add_form_key('login', '_LOGIN'); - $template->assign_vars(array( 'FORUM_NAME' => isset($forum_data['forum_name']) ? $forum_data['forum_name'] : '', 'S_LOGIN_ACTION' => build_url(array('f')), @@ -4439,6 +4433,10 @@ function page_header($page_title = '', $display_online_list = false, $item_id = $notification_mark_hash = generate_link_hash('mark_all_notifications_read'); $s_login_redirect = build_hidden_fields(array('redirect' => $phpbb_path_helper->remove_web_root_path(build_url()))); + + // Add form token for login box, in case page is presenting a login form. + add_form_key('login', '_LOGIN'); + /** * Workaround for missing template variable in pre phpBB 3.2.6 styles. * @deprecated 3.2.7 (To be removed: 3.3.0-a1) |