diff --git a/phpBB/language/en/posting.php b/phpBB/language/en/posting.php index 4d2ce46252..1a6866d535 100644 --- a/phpBB/language/en/posting.php +++ b/phpBB/language/en/posting.php @@ -46,7 +46,6 @@ $lang = array_merge($lang, array( 'ATTACH_COMMENT_NO_EMOJIS' => 'The attachment comment contains forbidden characters (Emoji).', 'ATTACH_DISK_FULL' => 'There is not enough free disk space to post this attachment.', 'ATTACH_QUOTA_REACHED' => 'Sorry, the board attachment quota has been reached.', - 'ATTACH_DISK_FREE_SPACE' => 'Sorry, the PHP disk_free_space function is disabled in this system.', 'ATTACH_SIG' => 'Attach a signature (signatures can be altered via the UCP)', 'BBCODE_A_HELP' => 'Inline uploaded attachment: [attachment=]filename.ext[/attachment]', diff --git a/phpBB/phpbb/attachment/upload.php b/phpBB/phpbb/attachment/upload.php index 9f18f2429f..7cd94d0858 100644 --- a/phpBB/phpbb/attachment/upload.php +++ b/phpBB/phpbb/attachment/upload.php @@ -317,16 +317,6 @@ class upload return false; } } - else - { - $this->file_data['error'][] = $this->language->lang('ATTACH_DISK_FREE_SPACE'); - - $this->file_data['post_attach'] = false; - - $this->file->remove(); - - return false; - } return true; }