From a61a8efc25cfd0584c71de1a45dbd2422afd6aba Mon Sep 17 00:00:00 2001 From: acydburn Date: Wed, 17 Sep 2008 14:31:32 +0000 Subject: [PATCH] Display popular topic based on posts within topic instead of replies within topic. (Bug #16099) git-svn-id: http://code.phpbb.com/svn/phpbb/trunk@8861 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_display.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index 03c9bd30e..9b37544c9 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -770,7 +770,8 @@ function topic_status(&$topic_row, $replies, $unread_topic, &$folder_img, &$fold $folder = 'topic_read'; $folder_new = 'topic_unread'; - if ($config['hot_threshold'] && $replies >= $config['hot_threshold'] && $topic_row['topic_status'] != ITEM_LOCKED) + // Hot topic threshold is for posts in a topic, which is replies + the first post. ;) + if ($config['hot_threshold'] && ($replies + 1) >= $config['hot_threshold'] && $topic_row['topic_status'] != ITEM_LOCKED) { $folder .= '_hot'; $folder_new .= '_hot'; -- 2.11.4.GIT