1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 08:17:47 +02:00

[ticket/15609] MCP Queue and Report forum and topic identifiers

PHPBB3-15609
This commit is contained in:
mrgoldy
2020-03-09 23:33:59 +01:00
parent 0a089c8656
commit 5881a24faa
3 changed files with 19 additions and 4 deletions

View File

@@ -370,8 +370,9 @@ class mcp_queue
$topic_id = $request->variable('t', 0);
$forum_info = array();
/* @var $pagination \phpbb\pagination */
$pagination = $phpbb_container->get('pagination');
// If 'sort' is set, "Go" was pressed which is located behind the forums <select> box
// Then, unset the topic id so it does not override the forum id
$topic_id = $request->is_set_post('sort') ? 0 : $topic_id;
if ($topic_id)
{
@@ -651,6 +652,9 @@ class mcp_queue
}
unset($rowset, $forum_names);
/* @var \phpbb\pagination $pagination */
$pagination = $phpbb_container->get('pagination');
$base_url = $this->u_action . "&amp;f=$forum_id&amp;st=$sort_days&amp;sk=$sort_key&amp;sd=$sort_dir";
$pagination->generate_template_pagination($base_url, 'pagination', 'start', $total, $config['topics_per_page'], $start);