aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_main.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-10-22 11:14:00 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-10-22 11:14:00 +0200
commit9945561b4b58e4825fd2290ae1fbbb3d49fd3e7c (patch)
treee97eabe9c1ad105d829473327661b29535a4f393 /phpBB/includes/ucp/ucp_main.php
parent6c39563e9f7fad18f1425292dca652861f5e1cb6 (diff)
downloadforums-9945561b4b58e4825fd2290ae1fbbb3d49fd3e7c.tar
forums-9945561b4b58e4825fd2290ae1fbbb3d49fd3e7c.tar.gz
forums-9945561b4b58e4825fd2290ae1fbbb3d49fd3e7c.tar.bz2
forums-9945561b4b58e4825fd2290ae1fbbb3d49fd3e7c.tar.xz
forums-9945561b4b58e4825fd2290ae1fbbb3d49fd3e7c.zip
[feature/soft-delete] Correctly calculate the number of replies everywhere
PHPBB3-9567
Diffstat (limited to 'phpBB/includes/ucp/ucp_main.php')
-rw-r--r--phpBB/includes/ucp/ucp_main.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_main.php b/phpBB/includes/ucp/ucp_main.php
index 94fd59433b..7aa06464b7 100644
--- a/phpBB/includes/ucp/ucp_main.php
+++ b/phpBB/includes/ucp/ucp_main.php
@@ -778,7 +778,7 @@ class ucp_main
$unread_topic = (isset($topic_tracking_info[$topic_id]) && $row['topic_last_post_time'] > $topic_tracking_info[$topic_id]) ? true : false;
// Replies
- $replies = ($auth->acl_get('m_approve', $forum_id)) ? $row['topic_replies_real'] : $row['topic_replies'];
+ $replies = phpbb_content_visibility::get_count('topic_posts', $row, $forum_id) - 1;
if ($row['topic_status'] == ITEM_MOVED && !empty($row['topic_moved_id']))
{