[ticket/14771] Remove not needed code from parse_attachments()

PHPBB3-14771
This commit is contained in:
Marc Alexander 2021-07-01 21:06:09 +02:00
parent 9201081461
commit 21759572c2
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -1318,14 +1318,10 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count_a
// Audio files // Audio files
case ATTACHMENT_CATEGORY_AUDIO: case ATTACHMENT_CATEGORY_AUDIO:
$inline_link = append_sid("{$phpbb_root_path}download/file.$phpEx", 'id=' . $attachment['attach_id']);
$block_array += [ $block_array += [
'S_AUDIO_FILE' => true, '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']; $update_count_ary[] = $attachment['attach_id'];
break; break;