aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-05-06 00:42:04 +0000
committerLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-05-06 00:42:04 +0000
commitbb373ebcba8d4ea15e617cd7edbfd54681712fcc (patch)
tree2c41fc5078b7268f6acdae80a0acfc8c2685eb85
parentb37c76e255980ae5dc752d17d976b56b52ac11c8 (diff)
downloadforums-bb373ebcba8d4ea15e617cd7edbfd54681712fcc.tar
forums-bb373ebcba8d4ea15e617cd7edbfd54681712fcc.tar.gz
forums-bb373ebcba8d4ea15e617cd7edbfd54681712fcc.tar.bz2
forums-bb373ebcba8d4ea15e617cd7edbfd54681712fcc.tar.xz
forums-bb373ebcba8d4ea15e617cd7edbfd54681712fcc.zip
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
-rw-r--r--phpBB/includes/functions_posting.php6
1 files changed, 5 insertions, 1 deletions
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(