aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-09-17 14:31:32 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-09-17 14:31:32 +0000
commit1651c5df57efc8ba0656fab556da85ddf8b88bfe (patch)
tree27f774b3c8f535e804074c98d4a3ec3bd67c5887 /phpBB
parent17ec98b834d38bce562cc2c0c7447e7f00280a22 (diff)
downloadforums-1651c5df57efc8ba0656fab556da85ddf8b88bfe.tar
forums-1651c5df57efc8ba0656fab556da85ddf8b88bfe.tar.gz
forums-1651c5df57efc8ba0656fab556da85ddf8b88bfe.tar.bz2
forums-1651c5df57efc8ba0656fab556da85ddf8b88bfe.tar.xz
forums-1651c5df57efc8ba0656fab556da85ddf8b88bfe.zip
Display popular topic based on posts within topic instead of replies within topic. (Bug #16099)
git-svn-id: file:///svn/phpbb/trunk@8861 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions_display.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index 03c9bd30ed..9b37544c9e 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';