aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-09-17 14:30:41 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-09-17 14:30:41 +0000
commit4dc6ff34d25262d2652839f6c17b2202894fa8a7 (patch)
tree835d99b2a4591ce8536a36dbfa4792cc25e918d5 /phpBB/includes
parentcac0a2255a25eac04cd6586536bdffcc49b05088 (diff)
downloadforums-4dc6ff34d25262d2652839f6c17b2202894fa8a7.tar
forums-4dc6ff34d25262d2652839f6c17b2202894fa8a7.tar.gz
forums-4dc6ff34d25262d2652839f6c17b2202894fa8a7.tar.bz2
forums-4dc6ff34d25262d2652839f6c17b2202894fa8a7.tar.xz
forums-4dc6ff34d25262d2652839f6c17b2202894fa8a7.zip
Display popular topic based on posts within topic instead of replies within topic. (Bug #16099)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8860 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-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 a96fab1caf..ceb1c63c93 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -772,7 +772,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';