diff options
author | Cesar G <prototech91@gmail.com> | 2013-11-09 23:18:10 -0800 |
---|---|---|
committer | Cesar G <prototech91@gmail.com> | 2014-04-22 15:21:01 -0700 |
commit | ef4202d8590cdf3d88049329fe02864881369906 (patch) | |
tree | 9d33474aad0cf15517ca1f72a2c7e7a3022a2426 /phpBB/includes | |
parent | c96ade84631a2ae24d7335b50a2c8c5b1f48b242 (diff) | |
download | forums-ef4202d8590cdf3d88049329fe02864881369906.tar forums-ef4202d8590cdf3d88049329fe02864881369906.tar.gz forums-ef4202d8590cdf3d88049329fe02864881369906.tar.bz2 forums-ef4202d8590cdf3d88049329fe02864881369906.tar.xz forums-ef4202d8590cdf3d88049329fe02864881369906.zip |
[ticket/11508] Build the jumpbox hidden fields using the _form action_
PHPBB3-11508
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions.php | 5 | ||||
-rw-r--r-- | phpBB/includes/functions_content.php | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 49b7293ed6..aa09b90b35 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2437,7 +2437,7 @@ function phpbb_get_url_parts($url, $separator = '&') { * Glue URL parameters together * * @param array $params URL parameters in the form of array(name => value) -* @return array Returns the glued string. +* @return string Returns the glued string. */ function phpbb_glue_url_params($params) { $_params = array(); @@ -2452,6 +2452,7 @@ function phpbb_glue_url_params($params) { /** * Append parameters to an already built URL. * +* @param string $url URL to append parameters to * @param array $new_params Parameters to add in the form of array(name => value) * @return string Returns the new URL. */ @@ -4965,7 +4966,6 @@ function page_header($page_title = '', $display_online_list = false, $item_id = } } - $hidden_fields_for_jumpbox = phpbb_build_hidden_fields_for_query_params($request, array('f')); $notification_mark_hash = generate_link_hash('mark_all_notifications_read'); // The following assigns all _common_ variables that may be used at any point in a template. @@ -4982,7 +4982,6 @@ function page_header($page_title = '', $display_online_list = false, $item_id = 'LOGGED_IN_USER_LIST' => $online_userlist, 'RECORD_USERS' => $l_online_record, 'PRIVATE_MESSAGE_COUNT' => (!empty($user->data['user_unread_privmsg'])) ? $user->data['user_unread_privmsg'] : 0, - 'HIDDEN_FIELDS_FOR_JUMPBOX' => $hidden_fields_for_jumpbox, 'UNREAD_NOTIFICATIONS_COUNT' => ($notifications !== false) ? $notifications['unread_count'] : '', 'NOTIFICATIONS_COUNT' => ($notifications !== false) ? $notifications['unread_count'] : '', diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php index b1f69c5756..387695a9e8 100644 --- a/phpBB/includes/functions_content.php +++ b/phpBB/includes/functions_content.php @@ -195,11 +195,13 @@ function make_jumpbox($action, $forum_id = false, $select_all = false, $acl_list } $db->sql_freeresult($result); unset($padding_store); + $url_parts = phpbb_get_url_parts($action); $template->assign_vars(array( - 'S_DISPLAY_JUMPBOX' => $display_jumpbox, - 'S_JUMPBOX_ACTION' => $action) - ); + 'S_DISPLAY_JUMPBOX' => $display_jumpbox, + 'S_JUMPBOX_ACTION' => $action, + 'HIDDEN_FIELDS_FOR_JUMPBOX' => build_hidden_fields($url_parts['params']), + )); return; } |