Minor improvements (#946)

* Minor improvements

* Apply fixes from StyleCI (#945)

Co-authored-by: StyleCI Bot <bot@styleci.io>

---------

Co-authored-by: Yury Pikhtarev <exileum@icloud.com>
Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
Roman Kelesidis 2023-10-03 20:35:53 +07:00 committed by GitHub
commit 95ca827198
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -446,7 +446,7 @@ if ($view === 'attachments') {
'FILENAME' => htmlspecialchars($attachments[$i]['real_filename']), 'FILENAME' => htmlspecialchars($attachments[$i]['real_filename']),
'COMMENT' => htmlspecialchars($attachments[$i]['comment']), 'COMMENT' => htmlspecialchars($attachments[$i]['comment']),
'EXTENSION' => $attachments[$i]['extension'], 'EXTENSION' => $attachments[$i]['extension'],
'SIZE' => round($attachments[$i]['filesize'] / 1024, 2), 'SIZE' => humn_size($attachments[$i]['filesize'], 2),
'DOWNLOAD_COUNT' => $attachments[$i]['download_count'], 'DOWNLOAD_COUNT' => $attachments[$i]['download_count'],
'POST_TIME' => bb_date($attachments[$i]['filetime']), 'POST_TIME' => bb_date($attachments[$i]['filetime']),
'POST_TITLE' => $post_titles, 'POST_TITLE' => $post_titles,