mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/16705] Fix check_disk_space function
Allow upload even if the check fails PHPBB3-16705
This commit is contained in:
parent
2ea22ee387
commit
5d18ad678b
2 changed files with 0 additions and 11 deletions
|
@ -46,7 +46,6 @@ $lang = array_merge($lang, array(
|
||||||
'ATTACH_COMMENT_NO_EMOJIS' => 'The attachment comment contains forbidden characters (Emoji).',
|
'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_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_QUOTA_REACHED' => 'Sorry, the board attachment quota has been reached.',
|
||||||
'ATTACH_DISK_FREE_SPACE' => 'Sorry, the PHP <samp>disk_free_space</samp> function is disabled in this system.',
|
|
||||||
'ATTACH_SIG' => 'Attach a signature (signatures can be altered via the UCP)',
|
'ATTACH_SIG' => 'Attach a signature (signatures can be altered via the UCP)',
|
||||||
|
|
||||||
'BBCODE_A_HELP' => 'Inline uploaded attachment: [attachment=]filename.ext[/attachment]',
|
'BBCODE_A_HELP' => 'Inline uploaded attachment: [attachment=]filename.ext[/attachment]',
|
||||||
|
|
|
@ -317,16 +317,6 @@ class upload
|
||||||
return false;
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue