diff options
author | Bart van Bragt <bartvb@users.sourceforge.net> | 2002-11-27 13:24:46 +0000 |
---|---|---|
committer | Bart van Bragt <bartvb@users.sourceforge.net> | 2002-11-27 13:24:46 +0000 |
commit | 831c9b5a611e2591e3b79170b4e487241e2d9595 (patch) | |
tree | 6b8478fa295f93add8428c3e2ab93d3037e62a39 /phpBB/posting.php | |
parent | 16e8fb800fb3b72d1c87fca829faab1cbb668f25 (diff) | |
download | forums-831c9b5a611e2591e3b79170b4e487241e2d9595.tar forums-831c9b5a611e2591e3b79170b4e487241e2d9595.tar.gz forums-831c9b5a611e2591e3b79170b4e487241e2d9595.tar.bz2 forums-831c9b5a611e2591e3b79170b4e487241e2d9595.tar.xz forums-831c9b5a611e2591e3b79170b4e487241e2d9595.zip |
Initial Lastread support. Mind the schema and config changes\!
git-svn-id: file:///svn/phpbb/trunk@3102 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 59476ccf1b..0e1be3f711 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -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) } } -?>
\ No newline at end of file +?> |