mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00: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
1 changed files with 3 additions and 1 deletions
|
@ -43,7 +43,9 @@ function mcp_forum_view($id, $mode, $action, $forum_info)
|
||||||
$to_topic_id = $request->variable('to_topic_id', 0);
|
$to_topic_id = $request->variable('to_topic_id', 0);
|
||||||
|
|
||||||
$url_extra = '';
|
$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_extra .= ($GLOBALS['user_id']) ? '&u=' . $GLOBALS['user_id'] : '';
|
||||||
|
|
||||||
$url = append_sid("{$phpbb_root_path}mcp.$phpEx?$url_extra");
|
$url = append_sid("{$phpbb_root_path}mcp.$phpEx?$url_extra");
|
||||||
|
|
Loading…
Add table
Reference in a new issue