aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-03-06 12:52:15 +0100
committerJoas Schilling <nickvergessen@gmx.de>2013-03-06 13:05:33 +0100
commitf5482e73fddc1a00f2c9df5f6428da70e2777547 (patch)
tree65699080cbd1b300f41a88189d8a8eb69abd2cf6 /phpBB/viewtopic.php
parent164a06c0665e0f5cbbfb3314b323ffe9a05648d7 (diff)
downloadforums-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.php2
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&amp;p={$row['post_id']}&amp;f=$forum_id"),
+ 'U_APPROVE_ACTION' => append_sid("{$phpbb_root_path}mcp.$phpEx", "i=queue&amp;p={$row['post_id']}&amp;f=$forum_id&amp;redirect=" . urlencode(str_replace('&amp;', '&', $viewtopic_url . '&amp;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 . '&amp;p=' . $row['post_id']) : '',
'U_MCP_REPORT' => ($auth->acl_get('m_report', $forum_id)) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=reports&amp;mode=report_details&amp;f=' . $forum_id . '&amp;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&amp;mode=approve_details&amp;f=' . $forum_id . '&amp;p=' . $row['post_id'], true, $user->session_id) : '',