[ticket/11963] Delete topic_in_queue notifications in MCP approve_details mode

PHPBB3-11963
This commit is contained in:
Cesar G 2013-11-23 11:03:37 -08:00
parent a6a23784c3
commit 8fa8037b4e

View file

@ -652,6 +652,11 @@ class mcp_queue
// Handle notifications
foreach ($post_info as $post_id => $post_data)
{
// A single topic approval may also happen here, so handle deleting the respective notification.
if (!$post_data['topic_posts_approved'])
{
$phpbb_notifications->delete_notifications('topic_in_queue', $post_data['topic_id']);
}
$phpbb_notifications->delete_notifications('post_in_queue', $post_id);
$phpbb_notifications->add_notifications(array(