From da2559364b2bc88de000e381a6b1a014fc78d481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B8nstantine=20Kovalensky?= <45331093+kovalensky@users.noreply.github.com> Date: Tue, 5 Dec 2023 17:54:30 +0400 Subject: [PATCH] Remove unnecessary file hashes for in-forum file-listing (#1192) It's already done by file_list_v2.php --- src/Legacy/TorrentFileList.php | 3 +-- styles/templates/default/viewtopic_attach.tpl | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Legacy/TorrentFileList.php b/src/Legacy/TorrentFileList.php index 6594df548..f2f73974d 100644 --- a/src/Legacy/TorrentFileList.php +++ b/src/Legacy/TorrentFileList.php @@ -148,8 +148,7 @@ class TorrentFileList $allItems .= "
  • $key
  • "; } else { $length = $value['']['length']; - $root = bin2hex($value['']['pieces root'] ?? ''); - $allItems .= "
  • $key$length

    $root

  • "; + $allItems .= "
  • $key$length
  • "; } } diff --git a/styles/templates/default/viewtopic_attach.tpl b/styles/templates/default/viewtopic_attach.tpl index 68f9947ba..84fb1ec59 100644 --- a/styles/templates/default/viewtopic_attach.tpl +++ b/styles/templates/default/viewtopic_attach.tpl @@ -339,7 +339,6 @@ $('#tor-filelist-btn').click(function(){ } #tor-filelist i { color: #7A7A7A; padding-left: 4px; } #tor-filelist s { color: #0000FF; text-decoration: none; } -#tor-filelist p { color: #7C7C7C; text-decoration: none; } #tor-filelist .b > s { color: #800000; } #tor-filelist .b { font-weight: bold; padding-left: 20px; background: transparent url('styles/images/folder.gif') no-repeat 3px 50%;} #tor-filelist ul li span { padding-left: 20px; background: transparent url('styles/images/page.gif') no-repeat 3px 50%;}