mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge remote-tracking branch 'Dickyf/ticket/10675' into develop-olympus
* Dickyf/ticket/10675: [Ticket/10675] Correct language string ATTACH_DISK_FULL [ticket/10675] Add disk full language string when posting attachments
This commit is contained in:
commit
3477b5e5a8
2 changed files with 9 additions and 1 deletions
|
@ -497,7 +497,14 @@ function upload_attachment($form_name, $forum_id, $local = false, $local_storage
|
||||||
{
|
{
|
||||||
if ($free_space <= $file->get('filesize'))
|
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;
|
$filedata['post_attach'] = false;
|
||||||
|
|
||||||
$file->remove();
|
$file->remove();
|
||||||
|
|
|
@ -42,6 +42,7 @@ $lang = array_merge($lang, array(
|
||||||
'ADD_POLL' => 'Poll creation',
|
'ADD_POLL' => 'Poll creation',
|
||||||
'ADD_POLL_EXPLAIN' => 'If you do not want to add a poll to your topic leave the fields blank.',
|
'ADD_POLL_EXPLAIN' => 'If you do not want to add a poll to your topic leave the fields blank.',
|
||||||
'ALREADY_DELETED' => 'Sorry but this message is already deleted.',
|
'ALREADY_DELETED' => 'Sorry but this message is already deleted.',
|
||||||
|
'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_SIG' => 'Attach a signature (signatures can be altered via the UCP)',
|
'ATTACH_SIG' => 'Attach a signature (signatures can be altered via the UCP)',
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue