mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11963] Delete topic_in_queue notifications in MCP approve_details mode
PHPBB3-11963
This commit is contained in:
parent
a6a23784c3
commit
8fa8037b4e
1 changed files with 5 additions and 0 deletions
|
@ -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(
|
||||||
|
|
Loading…
Add table
Reference in a new issue