mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge branch 'ticket/cyberalien/10319' into prep-release-3.0.10
* ticket/cyberalien/10319: [ticket/10319] Missing hidden fields in search form
This commit is contained in:
commit
57ba746f51
3 changed files with 28 additions and 1 deletions
|
@ -4378,7 +4378,7 @@ function phpbb_http_login($param)
|
||||||
*/
|
*/
|
||||||
function page_header($page_title = '', $display_online_list = true, $item_id = 0, $item = 'forum')
|
function page_header($page_title = '', $display_online_list = true, $item_id = 0, $item = 'forum')
|
||||||
{
|
{
|
||||||
global $db, $config, $template, $SID, $_SID, $user, $auth, $phpEx, $phpbb_root_path;
|
global $db, $config, $template, $SID, $_SID, $_EXTRA_URL, $user, $auth, $phpEx, $phpbb_root_path;
|
||||||
|
|
||||||
if (defined('HEADER_INC'))
|
if (defined('HEADER_INC'))
|
||||||
{
|
{
|
||||||
|
@ -4531,6 +4531,15 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
|
||||||
$s_search_hidden_fields['sid'] = $_SID;
|
$s_search_hidden_fields['sid'] = $_SID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($_EXTRA_URL))
|
||||||
|
{
|
||||||
|
foreach ($_EXTRA_URL as $url_param)
|
||||||
|
{
|
||||||
|
$url_param = explode('=', $url_param, 2);
|
||||||
|
$s_hidden_fields[$url_param[0]] = $url_param[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// The following assigns all _common_ variables that may be used at any point in a template.
|
// The following assigns all _common_ variables that may be used at any point in a template.
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'SITENAME' => $config['sitename'],
|
'SITENAME' => $config['sitename'],
|
||||||
|
|
|
@ -273,6 +273,15 @@ if ($_SID)
|
||||||
$s_search_hidden_fields['sid'] = $_SID;
|
$s_search_hidden_fields['sid'] = $_SID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($_EXTRA_URL))
|
||||||
|
{
|
||||||
|
foreach ($_EXTRA_URL as $url_param)
|
||||||
|
{
|
||||||
|
$url_param = explode('=', $url_param, 2);
|
||||||
|
$s_hidden_fields[$url_param[0]] = $url_param[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'MODERATORS' => (!empty($moderators[$forum_id])) ? implode(', ', $moderators[$forum_id]) : '',
|
'MODERATORS' => (!empty($moderators[$forum_id])) ? implode(', ', $moderators[$forum_id]) : '',
|
||||||
|
|
||||||
|
|
|
@ -602,6 +602,15 @@ if ($_SID)
|
||||||
$s_search_hidden_fields['sid'] = $_SID;
|
$s_search_hidden_fields['sid'] = $_SID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($_EXTRA_URL))
|
||||||
|
{
|
||||||
|
foreach ($_EXTRA_URL as $url_param)
|
||||||
|
{
|
||||||
|
$url_param = explode('=', $url_param, 2);
|
||||||
|
$s_hidden_fields[$url_param[0]] = $url_param[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Send vars to template
|
// Send vars to template
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'FORUM_ID' => $forum_id,
|
'FORUM_ID' => $forum_id,
|
||||||
|
|
Loading…
Add table
Reference in a new issue