mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
[ticket/11963] Delete topic_in_queue notifications in MCP approve_details mode
PHPBB3-11963
This commit is contained in:
@@ -652,6 +652,11 @@ class mcp_queue
|
|||||||
// Handle notifications
|
// Handle notifications
|
||||||
foreach ($post_info as $post_id => $post_data)
|
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->delete_notifications('post_in_queue', $post_id);
|
||||||
|
|
||||||
$phpbb_notifications->add_notifications(array(
|
$phpbb_notifications->add_notifications(array(
|
||||||
|
Reference in New Issue
Block a user