mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 07:35:29 +02:00
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
This commit is contained in:
parent
cac0a2255a
commit
4dc6ff34d2
@ -109,6 +109,7 @@
|
||||
<li>[Fix] Added missing terms parameter to search pagination. (Bug #34085)</li>
|
||||
<li>[Fix] Wrong table order in query obtaining posts if post id given.</li>
|
||||
<li>[Fix] Do not display reported topic icon for shadow topics. (Bug #13970)</li>
|
||||
<li>[Fix] Display popular topic based on posts within topic instead of replies within topic. (Bug #16099)</li>
|
||||
|
||||
<li>[Change] No longer allow the direct use of MULTI_INSERT in sql_build_array. sql_multi_insert() must be used.</li>
|
||||
<li>[Change] Display warning in ACP if config.php file is left writable.</li>
|
||||
|
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user