From 297163953e22be7e2e02459b35ec6dc06d995079 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Tue, 26 Dec 2023 11:41:45 +0700 Subject: [PATCH] Minor improvements (#1259) --- library/attach_mod/displaying.php | 1 + library/language/source/main.php | 2 +- styles/templates/default/viewtopic_attach.tpl | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/library/attach_mod/displaying.php b/library/attach_mod/displaying.php index 6c7905645..eff8d4adf 100644 --- a/library/attach_mod/displaying.php +++ b/library/attach_mod/displaying.php @@ -315,6 +315,7 @@ function display_attachments($post_id) 'FILESIZE' => $filesize, 'COMMENT' => $comment, 'TARGET_BLANK' => $target_blank, + 'IS_IMAGE' => (bool)$target_blank, 'DOWNLOAD_COUNT' => declension((int)$attachments['_' . $post_id][$i]['download_count'], 'times') ]); } diff --git a/library/language/source/main.php b/library/language/source/main.php index 50cb3c527..5fff68cbb 100644 --- a/library/language/source/main.php +++ b/library/language/source/main.php @@ -1247,7 +1247,7 @@ $lang['ALREADY_REG'] = 'Torrent already registered'; $lang['NOT_TORRENT'] = 'This file is not torrent'; $lang['ONLY_1_TOR_PER_POST'] = 'You can register only one torrent in one post'; $lang['ONLY_1_TOR_PER_TOPIC'] = 'You can register only one torrent in one topic'; -$lang['VIEWING_USER_BT_PROFILE'] = 'Viewing torrent-profile :: %s'; // %s is username +$lang['VIEWING_USER_BT_PROFILE'] = 'Torrent-profile'; $lang['CUR_ACTIVE_DLS'] = 'Active torrents'; $lang['TD_TRAF'] = 'Today'; diff --git a/styles/templates/default/viewtopic_attach.tpl b/styles/templates/default/viewtopic_attach.tpl index bf0386446..93fe075a3 100644 --- a/styles/templates/default/viewtopic_attach.tpl +++ b/styles/templates/default/viewtopic_attach.tpl @@ -14,11 +14,11 @@
{TOPIC_ATTACH_ICON} {L_ATTACHMENT} ({postrow.attach.cat_images.FILESIZE}) -

+

img

-

+

{postrow.attach.cat_images.COMMENT}

@@ -52,7 +52,7 @@ {postrow.attach.attachrow.S_UPLOAD_IMAGE} {L_ATTACHMENT}