diff options
| author | Tristan Darricau <github@nicofuma.fr> | 2017-03-21 16:29:10 +0100 |
|---|---|---|
| committer | Tristan Darricau <github@nicofuma.fr> | 2017-03-21 16:29:10 +0100 |
| commit | c9aab0baefcfe2ff81aeaa32d926435f26dfaa57 (patch) | |
| tree | 4fc276fda2b1a747877a17b6ed214b30b3478ac0 /phpBB/viewtopic.php | |
| parent | bd34b2301edbe4d3dbe3c980c568cf96c05eab40 (diff) | |
| parent | d15b88af2acd45d19b983d75eaefdeba30d31e93 (diff) | |
| download | forums-c9aab0baefcfe2ff81aeaa32d926435f26dfaa57.tar forums-c9aab0baefcfe2ff81aeaa32d926435f26dfaa57.tar.gz forums-c9aab0baefcfe2ff81aeaa32d926435f26dfaa57.tar.bz2 forums-c9aab0baefcfe2ff81aeaa32d926435f26dfaa57.tar.xz forums-c9aab0baefcfe2ff81aeaa32d926435f26dfaa57.zip | |
Merge pull request #4752 from nomind60s/ticket/15137
[ticket/15137] Global Announcements shouldn't always be never ending
* github.com:phpbb/phpbb:
[ticket/15137] Missed one language string change
[ticket/15137] Global announcements can stick for a non-zero number of days
fixes #4752
Diffstat (limited to 'phpBB/viewtopic.php')
| -rw-r--r-- | phpBB/viewtopic.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 7510a1281d..72603e9fe1 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -323,8 +323,8 @@ if ($post_id) $topic_id = (int) $topic_data['topic_id']; $topic_replies = $phpbb_content_visibility->get_count('topic_posts', $topic_data, $forum_id) - 1; -// Check sticky/announcement time limit -if (($topic_data['topic_type'] == POST_STICKY || $topic_data['topic_type'] == POST_ANNOUNCE) && $topic_data['topic_time_limit'] && ($topic_data['topic_time'] + $topic_data['topic_time_limit']) < time()) +// Check sticky/announcement/global time limit +if (($topic_data['topic_type'] != POST_NORMAL) && $topic_data['topic_time_limit'] && ($topic_data['topic_time'] + $topic_data['topic_time_limit']) < time()) { $sql = 'UPDATE ' . TOPICS_TABLE . ' SET topic_type = ' . POST_NORMAL . ', topic_time_limit = 0 |
