mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
Initial Lastread support. Mind the schema and config changes\!
git-svn-id: file:///svn/phpbb/trunk@3102 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -495,6 +495,10 @@ if (isset($post))
|
||||
$db->sql_query($sql);
|
||||
}
|
||||
|
||||
// Mark this topic as read and posted to.
|
||||
$mark_mode = ($mode == 'reply' || $mode == 'newtopic') ? 'post' : 'topic';
|
||||
markread($mark_mode, $forum_id, $topic_id, $post_id);
|
||||
|
||||
$db->sql_transaction('commit');
|
||||
|
||||
$template->assign_vars(array(
|
||||
@@ -503,7 +507,7 @@ if (isset($post))
|
||||
|
||||
$message = (!empty($enable_moderate)) ? 'POST_STORED_MOD' : 'POST_STORED';
|
||||
trigger_error($user->lang[$message]);
|
||||
}
|
||||
} // Store message, sync counters
|
||||
|
||||
// Houston, we have an error ...
|
||||
$post_text = &stripslashes($message);
|
||||
@@ -514,7 +518,7 @@ if (isset($post))
|
||||
$template->assign_vars(array(
|
||||
'ERROR_MESSAGE' => $err_msg)
|
||||
);
|
||||
}
|
||||
} // isset($post)
|
||||
|
||||
// PROCESS SUBMIT
|
||||
// --------------
|
||||
@@ -885,4 +889,4 @@ function topic_review($topic_id, $is_inline_review = false)
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user