diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php index cdc51d8a9e..dfcd2460db 100644 --- a/phpBB/includes/functions_content.php +++ b/phpBB/includes/functions_content.php @@ -1319,11 +1319,11 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count_a // Audio files case ATTACHMENT_CATEGORY_AUDIO: $inline_link = append_sid("{$phpbb_root_path}download/file.$phpEx", 'id=' . $attachment['attach_id']); - $block_array += array( + $block_array += [ 'S_AUDIO_FILE' => true, 'U_FORUM' => generate_board_url(), 'ATTACH_ID' => $attachment['attach_id'], - ); + ]; // Heard File ... update the download count $update_count_ary[] = $attachment['attach_id']; diff --git a/phpBB/styles/prosilver/template/attachment.html b/phpBB/styles/prosilver/template/attachment.html index 7cff5f76c8..6c1ed01da9 100644 --- a/phpBB/styles/prosilver/template/attachment.html +++ b/phpBB/styles/prosilver/template/attachment.html @@ -29,18 +29,18 @@ - + {% if _file.S_AUDIO_FILE %}
-
{_file.UPLOAD_ICON} {_file.DOWNLOAD_NAME}
-
{_file.COMMENT}
-
{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}
+
{% if _file.UPLOAD_ICON %}{{ _file.UPLOAD_ICON }} {% endif %}{{ _file.DOWNLOAD_NAME }}
+ {% if _file.COMMENT %}
{{ _file.COMMENT }}
{% endif %} +
{{ _file.DOWNLOAD_NAME }} ({{ _file.FILESIZE }} {{ _file.SIZE_LANG }}) {{ _file.L_DOWNLOAD_COUNT }}
- + {% endif %}