1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-19 15:22:08 +02:00

[ticket/16138] Eliminate redundant parameters from board URLs

Revert mcp change to fix some moderator functions
such as selecting topic for move posts

PHPBB3-16138
This commit is contained in:
v12mike 2020-01-27 14:56:13 -05:00 committed by Marc Alexander
parent 67f80c7942
commit b734fed853
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -43,7 +43,9 @@ function mcp_forum_view($id, $mode, $action, $forum_info)
$to_topic_id = $request->variable('to_topic_id', 0);
$url_extra = '';
$url_extra .= ($post_id) ? "&p=$post_id" : (($topic_id) ? "&t=$topic_id" : (($forum_id) ? "&f=$forum_id" : ''));
$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");