From 34ccbbda72ecea2be31209129d6f85c58f8a2362 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Tue, 26 Dec 2023 11:28:50 +0700 Subject: [PATCH] Updated --- library/attach_mod/displaying.php | 1 + styles/templates/default/viewtopic_attach.tpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/library/attach_mod/displaying.php b/library/attach_mod/displaying.php index 85b20a6a..8aff87ff 100644 --- a/library/attach_mod/displaying.php +++ b/library/attach_mod/displaying.php @@ -355,6 +355,7 @@ function display_attachments($post_id) 'FILESIZE' => $filesize, 'COMMENT' => $comment, 'TARGET_BLANK' => $target_blank, + 'IS_IMAGE' => !empty($target_blank), // Проверка на то, что загружаемый файл является картинкой 'DOWNLOAD_COUNT' => declension((int)$attachments['_' . $post_id][$i]['download_count'], 'times'), )); } diff --git a/styles/templates/default/viewtopic_attach.tpl b/styles/templates/default/viewtopic_attach.tpl index 92af614d..93dc44d8 100644 --- a/styles/templates/default/viewtopic_attach.tpl +++ b/styles/templates/default/viewtopic_attach.tpl @@ -52,7 +52,7 @@ {postrow.attach.attachrow.S_UPLOAD_IMAGE} {L_ATTACHMENT}