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:
parent
67f80c7942
commit
b734fed853
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user