aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2003-04-12 14:30:21 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2003-04-12 14:30:21 +0000
commit793182218a4e45fd6e28295e1f07e966922d2db1 (patch)
tree7716de09c3c465b2874afea3220b3795678afa03 /phpBB/includes/functions_posting.php
parent75eef6bfd7bbfdbb5a359e42015509197ad9d4ce (diff)
downloadforums-793182218a4e45fd6e28295e1f07e966922d2db1.tar
forums-793182218a4e45fd6e28295e1f07e966922d2db1.tar.gz
forums-793182218a4e45fd6e28295e1f07e966922d2db1.tar.bz2
forums-793182218a4e45fd6e28295e1f07e966922d2db1.tar.xz
forums-793182218a4e45fd6e28295e1f07e966922d2db1.zip
added 711252 and lock topic within post, fixed post editing a bit.
git-svn-id: file:///svn/phpbb/trunk@3817 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index f927284732..9480c153c1 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -775,7 +775,8 @@ function submit_post($mode, $message, $subject, $username, $topic_type, $bbcode_
'enable_smilies' => $post_data['enable_smilies'],
'enable_magic_url' => $post_data['enable_urls'],
'bbcode_uid' => $bbcode_uid,
- 'bbcode_bitfield' => $post_data['bbcode_bitfield']
+ 'bbcode_bitfield' => $post_data['bbcode_bitfield'],
+ 'post_edit_locked' => $post_data['post_edit_locked']
);
if ($mode != 'edit' || $post_data['message_md5'] != $post_data['post_checksum'])
@@ -786,7 +787,7 @@ function submit_post($mode, $message, $subject, $username, $topic_type, $bbcode_
'post_encoding' => $user->lang['ENCODING']
));
}
- $sql = ($mode == 'edit' && $post_data['poster_id'] == intval($user->data['user_id'])) ? 'UPDATE ' . POSTS_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $post_sql) . ' , post_edit_count = post_edit_count + 1 WHERE post_id = ' . $post_data['post_id'] : 'INSERT INTO ' . POSTS_TABLE . ' ' . $db->sql_build_array('INSERT', $post_sql);
+ $sql = ($mode == 'edit') ? 'UPDATE ' . POSTS_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $post_sql) . ' , post_edit_count = post_edit_count + 1 WHERE post_id = ' . $post_data['post_id'] : 'INSERT INTO ' . POSTS_TABLE . ' ' . $db->sql_build_array('INSERT', $post_sql);
$db->sql_query($sql);
$post_data['post_id'] = ($mode == 'edit') ? $post_data['post_id'] : $db->sql_nextid();