mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-24 20:17:58 +02:00
[ticket/11103] Mark Private Messages as read
PHPBB3-11103
This commit is contained in:
@ -876,7 +876,11 @@ function update_unread_status($unread, $msg_id, $user_id, $folder_id)
|
|||||||
return;
|
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 . "
|
$sql = 'UPDATE ' . PRIVMSGS_TO_TABLE . "
|
||||||
SET pm_unread = 0
|
SET pm_unread = 0
|
||||||
|
Reference in New Issue
Block a user