diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-09-02 17:24:56 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-09-02 17:24:56 +0000 |
commit | cda8083ba73d8884780a3e802b32b0441d2170b0 (patch) | |
tree | 3cd58211ccc477dd3fdde2047721877c623e3723 /phpBB/includes/functions_posting.php | |
parent | 83c83e0e6cb6efb6ae408a5b1a7afd77d57a63b4 (diff) | |
download | forums-cda8083ba73d8884780a3e802b32b0441d2170b0.tar forums-cda8083ba73d8884780a3e802b32b0441d2170b0.tar.gz forums-cda8083ba73d8884780a3e802b32b0441d2170b0.tar.bz2 forums-cda8083ba73d8884780a3e802b32b0441d2170b0.tar.xz forums-cda8083ba73d8884780a3e802b32b0441d2170b0.zip |
fixing some bugs
git-svn-id: file:///svn/phpbb/trunk@8075 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r-- | phpBB/includes/functions_posting.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 222f9a3843..6663acb5e2 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -773,6 +773,7 @@ function posting_gen_attachment_entry($attachment_data, &$filename_data) $template->assign_block_vars('attach_row', array( 'FILENAME' => basename($attach_row['real_filename']), + 'A_FILENAME' => addslashes(basename($attach_row['real_filename'])), 'FILE_COMMENT' => $attach_row['attach_comment'], 'ATTACH_ID' => $attach_row['attach_id'], 'S_IS_ORPHAN' => $attach_row['is_orphan'], @@ -1627,6 +1628,12 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u $sql_data[POSTS_TABLE]['stat'][] = 'post_edit_count = post_edit_count + 1'; } + else if (!$data['post_edit_reason'] && $mode == 'edit' && $auth->acl_get('m_edit', $data['forum_id'])) + { + $sql_data[POSTS_TABLE]['sql'] = array( + 'post_edit_reason' => '', + ); + } // If the person editing this post is different to the one having posted then we will add a log entry stating the edit // Could be simplified by only adding to the log if the edit is not tracked - but this may confuse admins/mods |