aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_privmsgs.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-09-14 16:20:15 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-09-14 16:20:15 -0500
commit40bc3b1f19af09f974e2c5bd6c113b78bcfe4f0b (patch)
tree78bf70c7fa4270ff3ec59751d6986ff9039ee7fd /phpBB/includes/functions_privmsgs.php
parentf083c6d7765b63ad0179bc82a3d9f0abbf08637c (diff)
downloadforums-40bc3b1f19af09f974e2c5bd6c113b78bcfe4f0b.tar
forums-40bc3b1f19af09f974e2c5bd6c113b78bcfe4f0b.tar.gz
forums-40bc3b1f19af09f974e2c5bd6c113b78bcfe4f0b.tar.bz2
forums-40bc3b1f19af09f974e2c5bd6c113b78bcfe4f0b.tar.xz
forums-40bc3b1f19af09f974e2c5bd6c113b78bcfe4f0b.zip
[ticket/11103] Mark Private Messages as read
PHPBB3-11103
Diffstat (limited to 'phpBB/includes/functions_privmsgs.php')
-rw-r--r--phpBB/includes/functions_privmsgs.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php
index 88c5bd8e2a..dbf5df787f 100644
--- a/phpBB/includes/functions_privmsgs.php
+++ b/phpBB/includes/functions_privmsgs.php
@@ -876,7 +876,11 @@ function update_unread_status($unread, $msg_id, $user_id, $folder_id)
return;
}
- global $db, $user;
+ global $db, $user, $phpbb_container;
+
+ // Mark the PM as read
+ $notifications = $phpbb_container->get('notifications');
+ $notifications->mark_notifications_read('pm', $msg_id, $user_id);
$sql = 'UPDATE ' . PRIVMSGS_TO_TABLE . "
SET pm_unread = 0