mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-11 10:05:19 +02:00
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
This commit is contained in:
parent
b37c76e255
commit
bb373ebcba
@ -955,7 +955,6 @@ function submit_post($mode, $message, $subject, $username, $topic_type, $bbcode_
|
|||||||
'post_subject' => stripslashes($subject),
|
'post_subject' => stripslashes($subject),
|
||||||
'icon_id' => $post_data['icon_id'],
|
'icon_id' => $post_data['icon_id'],
|
||||||
'poster_ip' => $user->ip,
|
'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_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,
|
'post_edit_time' => ($mode == 'edit' && $post_data['poster_id'] == $user->data['user_id']) ? $current_time : 0,
|
||||||
'enable_sig' => $post_data['enable_sig'],
|
'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']
|
'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'])
|
if ($mode != 'edit' || $post_data['message_md5'] != $post_data['post_checksum'])
|
||||||
{
|
{
|
||||||
$post_sql = array_merge($post_sql, array(
|
$post_sql = array_merge($post_sql, array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user