aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/search.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/search.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/search.php')
-rw-r--r--phpBB/search.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/search.php b/phpBB/search.php
index c45c46e27a..6d337fd93c 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -850,12 +850,11 @@ if ($keywords || $author || $author_id || $search_id || $submit)
$forum_id = $row['forum_id'];
$result_topic_id = $row['topic_id'];
$topic_title = censor_text($row['topic_title']);
+ $replies = phpbb_content_visibility::get_count('topic_posts', $row, $forum_id) - 1;
$view_topic_url_params = "f=$forum_id&amp;t=$result_topic_id" . (($u_hilit) ? "&amp;hilit=$u_hilit" : '');
$view_topic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", $view_topic_url_params);
- $replies = ($auth->acl_get('m_approve', $forum_id)) ? $row['topic_replies_real'] : $row['topic_replies'];
-
if ($show_results == 'topics')
{
if ($config['load_db_track'] && $author_id === $user->data['user_id'])