From f8302cbebf00d2fc158a1a84ea0c9af0f1a48787 Mon Sep 17 00:00:00 2001 From: David M Date: Sat, 12 May 2007 03:06:25 +0000 Subject: [PATCH] #10683 git-svn-id: file:///svn/phpbb/trunk@7538 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/mcp/mcp_forum.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/mcp/mcp_forum.php b/phpBB/includes/mcp/mcp_forum.php index 52b9a5af73..5fc907dddf 100644 --- a/phpBB/includes/mcp/mcp_forum.php +++ b/phpBB/includes/mcp/mcp_forum.php @@ -20,8 +20,6 @@ function mcp_forum_view($id, $mode, $action, $forum_info) include_once($phpbb_root_path . 'includes/functions_display.' . $phpEx); - $url = append_sid("{$phpbb_root_path}mcp.$phpEx?" . extra_url()); - // merge_topic is the quickmod action, merge_topics is the mcp_forum action, and merge_select is the mcp_topic action $merge_select = ($action == 'merge_select' || $action == 'merge_topic' || $action == 'merge_topics') ? true : false; @@ -38,6 +36,14 @@ function mcp_forum_view($id, $mode, $action, $forum_info) $source_topic_ids = array(request_var('t', 0)); $to_topic_id = request_var('to_topic_id', 0); + $url_extra = ''; + $url_extra .= ($forum_id) ? "&f=$forum_id" : ''; + $url_extra .= ($GLOBALS['topic_id']) ? '&t=' . $GLOBALS['topic_id'] : ''; + $url_extra .= ($GLOBALS['post_id']) ? '&p=' . $GLOBALS['post_id'] : ''; + $url_extra .= ($GLOBALS['user_id']) ? '&u=' . $GLOBALS['user_id'] : ''; + + $url = append_sid("{$phpbb_root_path}mcp.$phpEx?$url_extra"); + // Resync Topics switch ($action) {