From deba1329c893507a33a146bac8140f44d6e07e66 Mon Sep 17 00:00:00 2001 From: marcosbc Date: Sat, 3 May 2014 21:05:29 +0200 Subject: [PATCH] [ticket/12270] Fixed rebase conflicts PHPBB3-12270 --- phpBB/includes/mcp/mcp_queue.php | 35 +++++++++++++------------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php index a3e6e62b07..c2bcb048b3 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -653,34 +653,27 @@ class mcp_queue // Handle notifications foreach ($post_info as $post_id => $post_data) { - // A single topic approval may also happen here. + // 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']); $topic_id_list[] = $post_data['topic_id']; } -<<<<<<< HEAD - $phpbb_notifications->delete_notifications('post_in_queue', $post_id); - -<<<<<<< HEAD - // Only add notifications, if we are not reapproving post - // When the topic was already approved, but was edited and - // now needs re-approval, we don't want to notify the users - // again. - if ($post_data['post_visibility'] == ITEM_UNAPPROVED) -======= - // Send post notification only if a topic notification will not be sent. - if (!$send_topic_notification) ->>>>>>> c3f1f31... [ticket/12270] Correct notifications for posts/topics now working -======= // Send post notification only if a topic notification will not be sent. else ->>>>>>> a21cc11... [ticket/12270] Better structured code and no debug error message { - $phpbb_notifications->add_notifications(array( - 'quote', - 'bookmark', - 'post', - ), $post_data); + // Only add notifications, if we are not reapproving post + // When the topic was already approved, but was edited and + // now needs re-approval, we don't want to notify the users + // again. + if ($post_data['post_visibility'] == ITEM_UNAPPROVED) + { + $phpbb_notifications->add_notifications(array( + 'quote', + 'bookmark', + 'post', + ), $post_data); + } } $phpbb_notifications->delete_notifications('post_in_queue', $post_id);