diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2007-07-02 14:05:21 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2007-07-02 14:05:21 +0000 |
commit | 4aa578c73de276a7ed05f842825409009576bd92 (patch) | |
tree | b78324d82193627fb58d1c6c1eec50b217cb4dc4 /phpBB/includes/mcp/mcp_reports.php | |
parent | 1330f4ffdad6a250e612b0bcb4e598e0a80e6bbc (diff) | |
download | forums-4aa578c73de276a7ed05f842825409009576bd92.tar forums-4aa578c73de276a7ed05f842825409009576bd92.tar.gz forums-4aa578c73de276a7ed05f842825409009576bd92.tar.bz2 forums-4aa578c73de276a7ed05f842825409009576bd92.tar.xz forums-4aa578c73de276a7ed05f842825409009576bd92.zip |
Adding the bot mark/unmark links already promised in the changelog.
Adds backlinks to the success screen after closing reports (#12905)
Some style and language fixes (#12493, #12235, #11235, #11949) - the latter is still not perfect.
Added code to the phpBB2 converter to deal with slashed quotes (#12607)
Changes and adds language entries :)
git-svn-id: file:///svn/phpbb/trunk@7822 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp/mcp_reports.php')
-rwxr-xr-x | phpBB/includes/mcp/mcp_reports.php | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/phpBB/includes/mcp/mcp_reports.php b/phpBB/includes/mcp/mcp_reports.php index be94521b14..8617cb5ca7 100755 --- a/phpBB/includes/mcp/mcp_reports.php +++ b/phpBB/includes/mcp/mcp_reports.php @@ -451,6 +451,8 @@ function close_report($report_id_list, $mode, $action) $redirect = request_var('redirect', build_url(array('_f_', 'quickmod'))); } $success_msg = ''; + $forum_ids = array(); + $topic_ids = array(); $s_hidden_fields = build_hidden_fields(array( 'i' => 'reports', @@ -586,6 +588,13 @@ function close_report($report_id_list, $mode, $action) $messenger->send($reporter['user_notify_type']); } } + + foreach($post_info as $post) + { + $forum_ids[$post['forum_id']] = $post['forum_id']; + $topic_ids[$post['topic_id']] = $post['topic_id']; + } + unset($notify_reporters, $post_info, $reports); $messenger->save_queue(); @@ -607,7 +616,18 @@ function close_report($report_id_list, $mode, $action) else { meta_refresh(3, $redirect); - trigger_error($user->lang[$success_msg] . '<br /><br />' . sprintf($user->lang['RETURN_PAGE'], "<a href=\"$redirect\">", '</a>')); + $return_forum = ''; + if (sizeof($forum_ids == 1)) + { + $return_forum = sprintf($user->lang['RETURN_FORUM'], '<a href="' . append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . current($forum_ids)) . '">', '</a>') . '<br /><br />'; + } + $return_topic = ''; + if (sizeof($topic_ids == 1)) + { + $return_topic = sprintf($user->lang['RETURN_TOPIC'], '<a href="' . append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=' . current($topic_ids) . 'f=' . current($forum_ids)) . '">', '</a>') . '<br /><br />'; + } + + trigger_error($user->lang[$success_msg] . '<br /><br />' . $return_forum . $return_topic . sprintf($user->lang['RETURN_PAGE'], "<a href=\"$redirect\">", '</a>')); } } |