diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 01630b3d0c..01ceae1cb2 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -730,7 +730,7 @@ function posting_gen_attachment_entry($attachment_data, &$filename_data, $show_a 'S_HAS_ATTACHMENTS' => count($attachment_data), 'FILESIZE' => $config['max_filesize'], 'FILE_COMMENT' => (isset($filename_data['filecomment'])) ? $filename_data['filecomment'] : '', - 'MAX_ATTACHMENT_FILESIZE' => $user->lang('MAX_ATTACHMENT_FILESIZE', get_formatted_filesize($config['max_filesize'])), + 'MAX_ATTACHMENT_FILESIZE' => $config['max_filesize'] > 0 ? $user->lang('MAX_ATTACHMENT_FILESIZE', get_formatted_filesize($config['max_filesize'])) : '', )); if (count($attachment_data)) diff --git a/phpBB/styles/prosilver/template/posting_attach_body.html b/phpBB/styles/prosilver/template/posting_attach_body.html index 0d169f7f1a..f304d727f2 100644 --- a/phpBB/styles/prosilver/template/posting_attach_body.html +++ b/phpBB/styles/prosilver/template/posting_attach_body.html @@ -2,7 +2,7 @@
{L_ADD_ATTACHMENT_EXPLAIN} {L_PLUPLOAD_DRAG_TEXTAREA}
-{MAX_ATTACHMENT_FILESIZE}
+ {% if MAX_ATTACHMENT_FILESIZE is not empty %}{{ MAX_ATTACHMENT_FILESIZE }}
{% endif %}