From c0296d10db8724758c7e048ae053d830d395ab05 Mon Sep 17 00:00:00 2001 From: 3D-I Date: Sun, 10 Oct 2021 16:16:56 +0200 Subject: [PATCH] [ticket/16888] Add the list of allowed files in the attachment tab Using the accept attribute PHPBB3-16888 --- phpBB/includes/functions_posting.php | 2 +- phpBB/styles/prosilver/template/posting_attach_body.html | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 30e7cbf451..22b15cd893 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -831,7 +831,7 @@ function posting_gen_attachment_entry($attachment_data, &$filename_data, $show_a 'FILESIZE' => $config['max_filesize'], 'FILE_COMMENT' => (isset($filename_data['filecomment'])) ? $filename_data['filecomment'] : '', 'MAX_ATTACHMENT_FILESIZE' => $config['max_filesize'] > 0 ? $user->lang('MAX_ATTACHMENT_FILESIZE', get_formatted_filesize($config['max_filesize'])) : '', - 'ALLOWED_ATTACHMENTS' => !empty($allowed_attachments) ? implode(', ', $allowed_attachments) : '', + 'ALLOWED_ATTACHMENTS' => !empty($allowed_attachments) ? implode(',', $allowed_attachments) : '', )); 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 ceb93001c1..378fd118cc 100644 --- a/phpBB/styles/prosilver/template/posting_attach_body.html +++ b/phpBB/styles/prosilver/template/posting_attach_body.html @@ -3,13 +3,12 @@

{L_ADD_ATTACHMENT_EXPLAIN}

{% if MAX_ATTACHMENT_FILESIZE is not empty %}

{{ MAX_ATTACHMENT_FILESIZE }}

{% endif %} - {% if ALLOWED_ATTACHMENTS is not empty %}

{{ lang('ALLOWED_ATTACHMENTS') ~ lang('COLON') }} {{ ALLOWED_ATTACHMENTS }}

{% endif %}
- +