From 5298f16d47172ec9f085e22c11fb19300ee8aedf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B8nstantine=20Kovalensky?= <45331093+kovalensky@users.noreply.github.com> Date: Wed, 8 Nov 2023 22:24:39 +0400 Subject: [PATCH] Code re-formatting (#1065) --- library/includes/file_list_v2.php | 30 +++++++++++++------ styles/templates/default/viewtopic_attach.tpl | 2 +- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/library/includes/file_list_v2.php b/library/includes/file_list_v2.php index ac37807bb..6b7174a91 100644 --- a/library/includes/file_list_v2.php +++ b/library/includes/file_list_v2.php @@ -35,14 +35,13 @@ $torrent = new TorrentPier\Legacy\TorrentFileList($tor); $file_list = $torrent->fileTreeTable($tor['info']['file tree']); $date = ''; -$name = $tor['info']['name'] ?? ''; +$name = htmlCHR($tor['info']['name'] ?? ''); if (isset($tor['creation date']) && is_numeric($tor['creation date'])) { $date = date("d M Y | G:i:s T", $tor['creation date']); } $size = humn_size($file_list['size']); -echo " - +echo " @@ -50,7 +49,7 @@ echo " File list — $name ($size) - +
-

Document name: $name | Date: ($date) | Size: $size


+

Document name: $name | Date: ($date) | Size: $size


-"; +
LocationSizeBTMR hash ?
"; echo implode('', $file_list['list']); echo '
PathSizeHash ?
+

Generated by TorrentPier

'; diff --git a/styles/templates/default/viewtopic_attach.tpl b/styles/templates/default/viewtopic_attach.tpl index eb8727174..238fa2f9e 100644 --- a/styles/templates/default/viewtopic_attach.tpl +++ b/styles/templates/default/viewtopic_attach.tpl @@ -169,7 +169,7 @@

{postrow.attach.tor_reged.FILESIZE}

-

...

+

...