1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[ticket/14771] Use twig syntax and short array

PHPBB3-14771
This commit is contained in:
hubaishan
2020-06-23 13:12:15 +03:00
committed by Marc Alexander
parent 4bacbdd2a3
commit 298edde4b1
2 changed files with 8 additions and 8 deletions

View File

@@ -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'];