From bb373ebcba8d4ea15e617cd7edbfd54681712fcc Mon Sep 17 00:00:00 2001 From: Ludovic Arnaud Date: Tue, 6 May 2003 00:42:04 +0000 Subject: [PATCH] Do not update post's timestamp if we're only editing it git-svn-id: file:///svn/phpbb/trunk@3983 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_posting.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index c6df2b00a2..546531f863 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -955,7 +955,6 @@ function submit_post($mode, $message, $subject, $username, $topic_type, $bbcode_ 'post_subject' => stripslashes($subject), 'icon_id' => $post_data['icon_id'], 'poster_ip' => $user->ip, - 'post_time' => $current_time, 'post_approved' => ($auth->acl_get('f_moderate', $post_data['forum_id']) && !$auth->acl_get('f_ignorequeue', $post_data['forum_id'])) ? 0 : 1, 'post_edit_time' => ($mode == 'edit' && $post_data['poster_id'] == $user->data['user_id']) ? $current_time : 0, 'enable_sig' => $post_data['enable_sig'], @@ -968,6 +967,11 @@ function submit_post($mode, $message, $subject, $username, $topic_type, $bbcode_ 'post_edit_locked' => $post_data['post_edit_locked'] ); + if ($mode != 'edit') + { + $post_sql['post_time'] = $current_time; + + } if ($mode != 'edit' || $post_data['message_md5'] != $post_data['post_checksum']) { $post_sql = array_merge($post_sql, array(