From 95ca8271988891e7ab85806d22d047dc04551594 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Tue, 3 Oct 2023 20:35:53 +0700 Subject: [PATCH] Minor improvements (#946) * Minor improvements * Apply fixes from StyleCI (#945) Co-authored-by: StyleCI Bot --------- Co-authored-by: Yury Pikhtarev Co-authored-by: StyleCI Bot --- admin/admin_attach_cp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/admin_attach_cp.php b/admin/admin_attach_cp.php index 1fc89e9ea..c79b362f5 100644 --- a/admin/admin_attach_cp.php +++ b/admin/admin_attach_cp.php @@ -446,7 +446,7 @@ if ($view === 'attachments') { 'FILENAME' => htmlspecialchars($attachments[$i]['real_filename']), 'COMMENT' => htmlspecialchars($attachments[$i]['comment']), 'EXTENSION' => $attachments[$i]['extension'], - 'SIZE' => round($attachments[$i]['filesize'] / 1024, 2), + 'SIZE' => humn_size($attachments[$i]['filesize'], 2), 'DOWNLOAD_COUNT' => $attachments[$i]['download_count'], 'POST_TIME' => bb_date($attachments[$i]['filetime']), 'POST_TITLE' => $post_titles,