aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_reports.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-10-09 22:02:49 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-10-09 22:02:49 -0500
commitb33e5273942c4f67e8168763eec224fd61edaa8f (patch)
tree9ebafda51385310def15ee9c31afbc68b98d3a85 /phpBB/includes/mcp/mcp_reports.php
parent7411d1d1bdb2e6cc61d5e97d15e184351ea67c64 (diff)
downloadforums-b33e5273942c4f67e8168763eec224fd61edaa8f.tar
forums-b33e5273942c4f67e8168763eec224fd61edaa8f.tar.gz
forums-b33e5273942c4f67e8168763eec224fd61edaa8f.tar.bz2
forums-b33e5273942c4f67e8168763eec224fd61edaa8f.tar.xz
forums-b33e5273942c4f67e8168763eec224fd61edaa8f.zip
[ticket/11103] Working on report notifications (post/pm)
PHPBB3-11103
Diffstat (limited to 'phpBB/includes/mcp/mcp_reports.php')
-rw-r--r--phpBB/includes/mcp/mcp_reports.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/includes/mcp/mcp_reports.php b/phpBB/includes/mcp/mcp_reports.php
index 2890cd56e2..b43f9d6ec4 100644
--- a/phpBB/includes/mcp/mcp_reports.php
+++ b/phpBB/includes/mcp/mcp_reports.php
@@ -34,6 +34,7 @@ class mcp_reports
{
global $auth, $db, $user, $template, $cache;
global $config, $phpbb_root_path, $phpEx, $action;
+ global $phpbb_notifications;
include_once($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
@@ -87,6 +88,9 @@ class mcp_reports
trigger_error('NO_REPORT');
}
+ // Mark the notification as read
+ $phpbb_notifications->mark_notifications_read('report_post', $post_id, $user->data['user_id']);
+
if (!$report_id && $report['report_closed'])
{
trigger_error('REPORT_CLOSED');
@@ -413,7 +417,7 @@ class mcp_reports
$base_url = $this->u_action . "&amp;f=$forum_id&amp;t=$topic_id&amp;st=$sort_days&amp;sk=$sort_key&amp;sd=$sort_dir";
phpbb_generate_template_pagination($template, $base_url, 'pagination', 'start', $total, $config['topics_per_page'], $start);
-
+
// Now display the page
$template->assign_vars(array(
'L_EXPLAIN' => ($mode == 'reports') ? $user->lang['MCP_REPORTS_OPEN_EXPLAIN'] : $user->lang['MCP_REPORTS_CLOSED_EXPLAIN'],