diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-03-06 12:52:15 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-03-06 13:05:33 +0100 |
commit | f5482e73fddc1a00f2c9df5f6428da70e2777547 (patch) | |
tree | 65699080cbd1b300f41a88189d8a8eb69abd2cf6 /phpBB/viewtopic.php | |
parent | 164a06c0665e0f5cbbfb3314b323ffe9a05648d7 (diff) | |
download | forums-f5482e73fddc1a00f2c9df5f6428da70e2777547.tar forums-f5482e73fddc1a00f2c9df5f6428da70e2777547.tar.gz forums-f5482e73fddc1a00f2c9df5f6428da70e2777547.tar.bz2 forums-f5482e73fddc1a00f2c9df5f6428da70e2777547.tar.xz forums-f5482e73fddc1a00f2c9df5f6428da70e2777547.zip |
[ticket/9657] Correctly return to viewtopic page when handling posts
While managing posts from viewtopic.php we should return to that page,
rather then the MCP
PHPBB3-9657
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r-- | phpBB/viewtopic.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 6cfbef6dc7..c192bb28d9 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -1659,7 +1659,7 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i) 'U_YIM' => $user_cache[$poster_id]['yim'], 'U_JABBER' => $user_cache[$poster_id]['jabber'], - 'U_APPROVE_ACTION' => append_sid("{$phpbb_root_path}mcp.$phpEx", "i=queue&p={$row['post_id']}&f=$forum_id"), + 'U_APPROVE_ACTION' => append_sid("{$phpbb_root_path}mcp.$phpEx", "i=queue&p={$row['post_id']}&f=$forum_id&redirect=" . urlencode(str_replace('&', '&', $viewtopic_url . '&p=' . $row['post_id'] . '#p' . $row['post_id']))), 'U_REPORT' => ($auth->acl_get('f_report', $forum_id)) ? append_sid("{$phpbb_root_path}report.$phpEx", 'f=' . $forum_id . '&p=' . $row['post_id']) : '', 'U_MCP_REPORT' => ($auth->acl_get('m_report', $forum_id)) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=reports&mode=report_details&f=' . $forum_id . '&p=' . $row['post_id'], true, $user->session_id) : '', 'U_MCP_APPROVE' => ($auth->acl_get('m_approve', $forum_id)) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue&mode=approve_details&f=' . $forum_id . '&p=' . $row['post_id'], true, $user->session_id) : '', |