1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

[ticket/10675] Add disk full language string when posting attachments

Add language string visible by admins only for when the disk does not have
enough free space to upload attachments.

PHPBB3-10675
This commit is contained in:
Richard Foote
2012-03-19 15:08:28 -04:00
parent 81eeafbb8d
commit 97d4f168f5
2 changed files with 9 additions and 1 deletions

View File

@@ -497,7 +497,14 @@ function upload_attachment($form_name, $forum_id, $local = false, $local_storage
{
if ($free_space <= $file->get('filesize'))
{
$filedata['error'][] = $user->lang['ATTACH_QUOTA_REACHED'];
if ($auth->acl_get('a_'))
{
$filedata['error'][] = $user->lang['ATTACH_DISK_FULL'];
}
else
{
$filedata['error'][] = $user->lang['ATTACH_QUOTA_REACHED'];
}
$filedata['post_attach'] = false;
$file->remove();