mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
- 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
This commit is contained in:
@@ -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')))
|
||||
|
Reference in New Issue
Block a user