aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorRichard Foote <dicky@phpbb.com>2012-03-19 15:08:28 -0400
committerRichard Foote <dicky@phpbb.com>2012-03-19 15:08:28 -0400
commit97d4f168f588288df071e4a8b107b9ffb8b0355f (patch)
treeb3d1e654f87321a78d7577073e62540290c262e2 /phpBB/includes/functions_posting.php
parent81eeafbb8dfb6f3511d689169a2ccc46f3d07704 (diff)
downloadforums-97d4f168f588288df071e4a8b107b9ffb8b0355f.tar
forums-97d4f168f588288df071e4a8b107b9ffb8b0355f.tar.gz
forums-97d4f168f588288df071e4a8b107b9ffb8b0355f.tar.bz2
forums-97d4f168f588288df071e4a8b107b9ffb8b0355f.tar.xz
forums-97d4f168f588288df071e4a8b107b9ffb8b0355f.zip
[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
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index f920be9c4b..b40fd67927 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -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();