aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_queue.php
diff options
context:
space:
mode:
authormarcosbc <marcosbc>2014-05-24 14:06:23 +0200
committermarcosbc <marcosbc>2014-05-24 14:06:23 +0200
commit36dfb95816d66a14533e2a1913154bde377b100c (patch)
treee77e6d1bf8f72764c36f923f94586ebcf26aec04 /phpBB/includes/mcp/mcp_queue.php
parentc47c50a29e675a1ba46a0aab42324ad099589682 (diff)
downloadforums-36dfb95816d66a14533e2a1913154bde377b100c.tar
forums-36dfb95816d66a14533e2a1913154bde377b100c.tar.gz
forums-36dfb95816d66a14533e2a1913154bde377b100c.tar.bz2
forums-36dfb95816d66a14533e2a1913154bde377b100c.tar.xz
forums-36dfb95816d66a14533e2a1913154bde377b100c.zip
[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
Diffstat (limited to 'phpBB/includes/mcp/mcp_queue.php')
-rw-r--r--phpBB/includes/mcp/mcp_queue.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php
index ff230af1e6..5f96d5952b 100644
--- a/phpBB/includes/mcp/mcp_queue.php
+++ b/phpBB/includes/mcp/mcp_queue.php
@@ -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++;
}
}