diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2009-09-25 08:41:47 +0000 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2009-09-25 08:41:47 +0000 |
commit | de25ce87243aaa9d9310d36f189fc051975dc494 (patch) | |
tree | 351eb71c410984988ae7936761f176540b2b7500 /phpBB/posting.php | |
parent | 023760c8b2402418310a3717db8349cac0342e42 (diff) | |
download | forums-de25ce87243aaa9d9310d36f189fc051975dc494.tar forums-de25ce87243aaa9d9310d36f189fc051975dc494.tar.gz forums-de25ce87243aaa9d9310d36f189fc051975dc494.tar.bz2 forums-de25ce87243aaa9d9310d36f189fc051975dc494.tar.xz forums-de25ce87243aaa9d9310d36f189fc051975dc494.zip |
Fix Bug #51835 - editing posts with attachments - regression from r9843 introduced in #48265
Authorised by: AcydBurn
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10186 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 9c46edd0e1..1c7cd95b81 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -742,28 +742,7 @@ if ($submit || $preview || $refresh) } // Parse Attachments - before checksum is calculated - if ($mode == 'edit') - { - $message_parser->parse_attachments('fileupload', $mode, $forum_id, $submit, $preview, $refresh, false, $post_id, $topic_id); - if (sizeof($message_parser->attachment_data)) - { - // Update attachment indicators for post/topic having attachments now, as a precaution if the post does not get stored by submit - $sql = 'UPDATE ' . POSTS_TABLE . ' - SET post_attachment = 1 - WHERE post_id = ' . $post_id; - $db->sql_query($sql); - - $sql = 'UPDATE ' . TOPICS_TABLE . ' - SET topic_attachment = 1 - WHERE topic_id = ' . $topic_id; - $db->sql_query($sql); - } - } - else - { - $message_parser->parse_attachments('fileupload', $mode, $forum_id, $submit, $preview, $refresh); - } - + $message_parser->parse_attachments('fileupload', $mode, $forum_id, $submit, $preview, $refresh); // Grab md5 'checksum' of new message $message_md5 = md5($message_parser->message); |