diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-10-22 11:14:00 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-10-22 11:14:00 +0200 |
commit | 9945561b4b58e4825fd2290ae1fbbb3d49fd3e7c (patch) | |
tree | e97eabe9c1ad105d829473327661b29535a4f393 /phpBB/includes/mcp/mcp_topic.php | |
parent | 6c39563e9f7fad18f1425292dca652861f5e1cb6 (diff) | |
download | forums-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/mcp/mcp_topic.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_topic.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/phpBB/includes/mcp/mcp_topic.php b/phpBB/includes/mcp/mcp_topic.php index 8320699a8c..0259a12ca8 100644 --- a/phpBB/includes/mcp/mcp_topic.php +++ b/phpBB/includes/mcp/mcp_topic.php @@ -115,14 +115,7 @@ function mcp_topic_view($id, $mode, $action) if ($total == -1) { - if ($auth->acl_get('m_approve', $topic_info['forum_id'])) - { - $total = $topic_info['topic_replies_real'] + 1; - } - else - { - $total = $topic_info['topic_replies'] + 1; - } + $total = phpbb_content_visibility::get_count('topic_posts', $topic_info, $topic_info['forum_id']); } $posts_per_page = max(0, request_var('posts_per_page', intval($config['posts_per_page']))); |