From 453adbcd5c138699165626187e7d798b20d7e427 Mon Sep 17 00:00:00 2001 From: mrgoldy Date: Sat, 11 Apr 2020 20:30:57 +0200 Subject: [PATCH] [ticket/16434] Add forum id to advanced search in viewforum PHPBB3-16434 --- phpBB/styles/prosilver/template/viewforum_body.html | 2 +- phpBB/viewforum.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/phpBB/styles/prosilver/template/viewforum_body.html b/phpBB/styles/prosilver/template/viewforum_body.html index da46f4c7fc..6127602a76 100644 --- a/phpBB/styles/prosilver/template/viewforum_body.html +++ b/phpBB/styles/prosilver/template/viewforum_body.html @@ -58,7 +58,7 @@ - + {L_SEARCH_ADV} {S_SEARCH_LOCAL_HIDDEN_FIELDS} diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 14c3ba1409..f50754f150 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -433,6 +433,7 @@ $template->assign_vars(array( 'U_VIEW_FORUM' => append_sid("{$phpbb_root_path}viewforum.$phpEx", "f=$forum_id" . ((strlen($u_sort_param)) ? "&$u_sort_param" : '') . (($start == 0) ? '' : "&start=$start")), 'U_CANONICAL' => generate_board_url() . '/' . append_sid("viewforum.$phpEx", "f=$forum_id" . (($start) ? "&start=$start" : ''), true, ''), 'U_MARK_TOPICS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}viewforum.$phpEx", 'hash=' . generate_link_hash('global') . "&f=$forum_id&mark=topics&mark_time=" . time()) : '', + 'U_SEARCH_FORUM' => append_sid("{$phpbb_root_path}search.$phpEx", 'fid%5B%5D=' . $forum_id), )); // Grab icons