[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:
marcosbc 2014-05-24 14:06:23 +02:00
parent c47c50a29e
commit 36dfb95816

View file

@ -656,6 +656,9 @@ class mcp_queue
if ($post_data['post_visibility'] == ITEM_UNAPPROVED)
{
$phpbb_notifications->add_notifications(array('topic'), $post_data);
}
if ($post_data['post_visibility'] != ITEM_APPROVED)
{
$num_topics++;
}
}