mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 16:27:38 +02:00
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
This commit is contained in:
@@ -770,7 +770,8 @@ function topic_status(&$topic_row, $replies, $unread_topic, &$folder_img, &$fold
|
|||||||
$folder = 'topic_read';
|
$folder = 'topic_read';
|
||||||
$folder_new = 'topic_unread';
|
$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 .= '_hot';
|
||||||
$folder_new .= '_hot';
|
$folder_new .= '_hot';
|
||||||
|
Reference in New Issue
Block a user