mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-09 11:24:35 +02:00
[ticket/12270] Fixed topic counting bug and tests
Topics was not correctly counted (the counter didn't count topics that were re-approved, for example, but only the ones that were unapproved. This should also fix the test that wasn't working correctly. PHPBB3-12270
This commit is contained in:
@ -656,6 +656,9 @@ class mcp_queue
|
|||||||
if ($post_data['post_visibility'] == ITEM_UNAPPROVED)
|
if ($post_data['post_visibility'] == ITEM_UNAPPROVED)
|
||||||
{
|
{
|
||||||
$phpbb_notifications->add_notifications(array('topic'), $post_data);
|
$phpbb_notifications->add_notifications(array('topic'), $post_data);
|
||||||
|
}
|
||||||
|
if ($post_data['post_visibility'] != ITEM_APPROVED)
|
||||||
|
{
|
||||||
$num_topics++;
|
$num_topics++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user