diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-01-18 18:06:40 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-01-18 18:06:40 +0000 |
commit | f8a3f05afdb470ec4d78d393c8e03c9ee08cd114 (patch) | |
tree | 7d6a488a8519a0e42d5cba7c2da2cda79de70238 /phpBB/posting.php | |
parent | 086d4dceac0bcc4be228af415e386ac3f6f3483c (diff) | |
download | forums-f8a3f05afdb470ec4d78d393c8e03c9ee08cd114.tar forums-f8a3f05afdb470ec4d78d393c8e03c9ee08cd114.tar.gz forums-f8a3f05afdb470ec4d78d393c8e03c9ee08cd114.tar.bz2 forums-f8a3f05afdb470ec4d78d393c8e03c9ee08cd114.tar.xz forums-f8a3f05afdb470ec4d78d393c8e03c9ee08cd114.zip |
- fix two very annoying bugs
(1) mark topic read behaving incorrectly if editing posts (the topic gets marked unread)
(2) jump to wrong page number (viewtopic with post id) if descending post ordering is set
git-svn-id: file:///svn/phpbb/trunk@5471 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 276db4355d..c5a36421a9 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1867,7 +1867,8 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u } // Mark this topic as read - markread('topic', $data['forum_id'], $data['topic_id'], $data['post_time']); + // We do not use post_time here, this is intended (post_time can have a date in the past if editing a message) + markread('topic', $data['forum_id'], $data['topic_id'], time()); // Send Notifications if ($mode != 'edit' && $mode != 'delete' && (!$auth->acl_get('f_moderate', $data['forum_id']) || $auth->acl_get('m_approve'))) |