aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_pm_reports.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-10-09 22:28:41 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-10-09 22:28:41 -0500
commit6d53bd4675e00419bcfcf476b03166b9774bebca (patch)
treed43fae09701fd781e2c2c0ae0626228867eb839e /phpBB/includes/mcp/mcp_pm_reports.php
parent9d955507b6314ccd52d4d7d42a6d2514f14db9f3 (diff)
downloadforums-6d53bd4675e00419bcfcf476b03166b9774bebca.tar
forums-6d53bd4675e00419bcfcf476b03166b9774bebca.tar.gz
forums-6d53bd4675e00419bcfcf476b03166b9774bebca.tar.bz2
forums-6d53bd4675e00419bcfcf476b03166b9774bebca.tar.xz
forums-6d53bd4675e00419bcfcf476b03166b9774bebca.zip
[ticket/11103] Finishing up PM Report notifications
PHPBB3-11103
Diffstat (limited to 'phpBB/includes/mcp/mcp_pm_reports.php')
-rw-r--r--phpBB/includes/mcp/mcp_pm_reports.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_pm_reports.php b/phpBB/includes/mcp/mcp_pm_reports.php
index 24e531517c..227c89bb79 100644
--- a/phpBB/includes/mcp/mcp_pm_reports.php
+++ b/phpBB/includes/mcp/mcp_pm_reports.php
@@ -34,6 +34,7 @@ class mcp_pm_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);
include_once($phpbb_root_path . 'includes/functions_privmsgs.' . $phpEx);
@@ -89,6 +90,9 @@ class mcp_pm_reports
trigger_error('NO_REPORT');
}
+ // Mark the notification as read
+ $phpbb_notifications->mark_notifications_read_by_parent('report_pm', $report_id, $user->data['user_id']);
+
$pm_id = $report['pm_id'];
$report_id = $report['report_id'];