mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-14 04:34:07 +02:00
- updated topic tracking code
- additional changes (mostly bugfixes) - bart, if you update your user table with the user_lastmark field, set it to the user_lastvisit value ;) - and last but not least, introducing some bugs in ucp main front (regarding topic tracking) git-svn-id: file:///svn/phpbb/trunk@5272 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1843,9 +1843,14 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
||||
$db->sql_query($sql);
|
||||
}
|
||||
|
||||
// Mark this topic as read and posted to.
|
||||
$mark_mode = ($mode == 'post' || $mode == 'reply' || $mode == 'quote') ? 'post' : 'topic';
|
||||
markread($mark_mode, $data['forum_id'], $data['topic_id'], $data['post_time']);
|
||||
if ($mode == 'post' || $mode == 'reply' || $mode == 'quote')
|
||||
{
|
||||
// Mark this topic as posted to
|
||||
markread('post', $data['forum_id'], $data['topic_id'], $data['post_time']);
|
||||
}
|
||||
|
||||
// Mark this topic as read
|
||||
markread('topic', $data['forum_id'], $data['topic_id'], $data['post_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