diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-06-21 16:05:02 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-06-21 16:05:02 +0000 |
commit | 11f27bee84447bf769e10fc7d099bb34209e9c2d (patch) | |
tree | 4218e19de59eec3c42f4202513abaddd3eb61c07 /phpBB/includes/functions_posting.php | |
parent | b8647dc952b8992e3a09d31f27a5f3834fb4e8b5 (diff) | |
download | forums-11f27bee84447bf769e10fc7d099bb34209e9c2d.tar forums-11f27bee84447bf769e10fc7d099bb34209e9c2d.tar.gz forums-11f27bee84447bf769e10fc7d099bb34209e9c2d.tar.bz2 forums-11f27bee84447bf769e10fc7d099bb34209e9c2d.tar.xz forums-11f27bee84447bf769e10fc7d099bb34209e9c2d.zip |
further checks on maximum storage length
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8667 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r-- | phpBB/includes/functions_posting.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index fe41bc448d..72c4fd0728 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -362,7 +362,7 @@ function upload_attachment($form_name, $forum_id, $local = false, $local_storage { $upload->set_disallowed_content(explode('|', $config['mime_triggers'])); } - + if (!$local) { $filedata['post_attach'] = ($upload->is_valid($form_name)) ? true : false; @@ -1345,7 +1345,7 @@ function delete_post($forum_id, $topic_id, $post_id, &$data) else if ($data['topic_first_post_id'] == $post_id) { $post_mode = 'delete_first_post'; - } + } else if ($data['topic_last_post_id'] == $post_id) { $post_mode = 'delete_last_post'; @@ -1651,7 +1651,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u // Display edit info if edit reason given or user is editing his post, which is not the last within the topic. if ($data['post_edit_reason'] || (!$auth->acl_get('m_edit', $data['forum_id']) && ($post_mode == 'edit' || $post_mode == 'edit_first_post'))) { - $data['post_edit_reason'] = truncate_string($data['post_edit_reason'], 255, false); + $data['post_edit_reason'] = truncate_string($data['post_edit_reason'], 255, 255, false); $sql_data[POSTS_TABLE]['sql'] = array( 'post_edit_time' => $current_time, |