From ce138921d84e2647896d621834e5b93cdeb4b1ae Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 14 Dec 2024 15:38:33 +0700 Subject: [PATCH] Minor improvements (#1715) * Minor improvements * Updated * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md --- CHANGELOG.md | 4 ++-- library/ajax/ffprobe_info.php | 6 +++--- library/ajax/posts.php | 2 +- posting.php | 2 +- src/Dev.php | 2 +- src/Legacy/Torrent.php | 2 +- styles/js/main.js | 2 +- styles/templates/admin/index.tpl | 8 ++++---- styles/templates/default/playback_m3u.tpl | 8 ++++---- styles/templates/default/usercp_register.tpl | 2 +- styles/templates/default/viewtopic.tpl | 10 +++++----- styles/templates/default/viewtopic_attach.tpl | 2 +- 12 files changed, 25 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 305ff2d98..9266a43f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,8 +9,8 @@ - Show torrent's announcers list in `filelist.php` page [\#1708](https://github.com/torrentpier/torrentpier/pull/1708) ([belomaxorka](https://github.com/belomaxorka)) - [Configurable] Show magnet-links for guests [\#1712](https://github.com/torrentpier/torrentpier/pull/1712) ([belomaxorka](https://github.com/belomaxorka)) - Set `cursor: pointer;` for buttons, inputs (buttons) [\#1710](https://github.com/torrentpier/torrentpier/pull/1710), [\#1711](https://github.com/torrentpier/torrentpier/pull/1711) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#1705](https://github.com/torrentpier/torrentpier/pull/1705), [\#1713](https://github.com/torrentpier/torrentpier/pull/1713) ([belomaxorka](https://github.com/belomaxorka)) -- New Crowdin updates [\#1704](https://github.com/torrentpier/torrentpier/pull/1704), [\#1706](https://github.com/torrentpier/torrentpier/pull/1706) ([Exileum](https://github.com/Exileum)) +- Minor improvements [\#1705](https://github.com/torrentpier/torrentpier/pull/1705), [\#1713](https://github.com/torrentpier/torrentpier/pull/1713), [\#1715](https://github.com/torrentpier/torrentpier/pull/1715) ([belomaxorka](https://github.com/belomaxorka)) +- New Crowdin updates [\#1704](https://github.com/torrentpier/torrentpier/pull/1704), [\#1706](https://github.com/torrentpier/torrentpier/pull/1706), [\#1714](https://github.com/torrentpier/torrentpier/pull/1714) ([Exileum](https://github.com/Exileum)) ## [v2.4.5-rc.1](https://github.com/torrentpier/torrentpier/tree/v2.4.5-rc.1) (2024-12-08) [Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.4...v2.4.5-rc.1) diff --git a/library/ajax/ffprobe_info.php b/library/ajax/ffprobe_info.php index 5213f6e3a..d7d7a3781 100644 --- a/library/ajax/ffprobe_info.php +++ b/library/ajax/ffprobe_info.php @@ -84,11 +84,11 @@ if (isset($ffpInfo->streams)) { 'filesize' => sprintf($lang['FILESIZE'] . ': %s', humn_size($ffpInfo->format->size)), 'resolution' => (!$isAudio && isset($videoCodecInfo)) ? sprintf($lang['RESOLUTION'], $videoCodecInfo->width . 'x' . $videoCodecInfo->height) : '', 'video_codec' => (!$isAudio && isset($videoCodecInfo->codec_name)) ? sprintf($lang['VIDEO_CODEC'], $videoCodecInfo->codec_long_name, mb_strtoupper($videoCodecInfo->codec_name, 'UTF-8')) : '', - 'audio_dub' => implode('
', $audioDub) + 'audio_dub' => implode('
', $audioDub) ]; // Validate output data - $result = '
'; + $result = '
'; if (!empty($data['resolution'])) { $result .= $data['resolution'] . '
'; } @@ -99,7 +99,7 @@ if (isset($ffpInfo->streams)) { $result .= $data['video_codec']; } if (!empty($data['audio_dub'])) { - $result .= '
' . $data['audio_dub']; + $result .= '
' . $data['audio_dub']; } $this->response['ffprobe_data'] = $result; diff --git a/library/ajax/posts.php b/library/ajax/posts.php index b4427e960..76a589bc3 100644 --- a/library/ajax/posts.php +++ b/library/ajax/posts.php @@ -179,7 +179,7 @@ switch ($this->request['type']) { -
+
@@ -448,16 +448,16 @@ function build_poll_add_form (src_el)

{L_RELEASE_FROM_RG} — {postrow.RG_NAME}

-
{postrow.RG_AVATAR} +
{postrow.RG_AVATAR}
{L_DESCRIPTION}: {postrow.RG_DESC}
-
{L_SIGNATURE}: {postrow.RG_SIG}
-
{L_MORE_RELEASES} +
{L_SIGNATURE}: {postrow.RG_SIG}
+
{L_MORE_RELEASES}
style="display: none;">
-

{postrow.MC_TITLE}


+

{postrow.MC_TITLE}


{postrow.MC_COMMENT}
diff --git a/styles/templates/default/viewtopic_attach.tpl b/styles/templates/default/viewtopic_attach.tpl index 7aff7261d..372c87b7b 100644 --- a/styles/templates/default/viewtopic_attach.tpl +++ b/styles/templates/default/viewtopic_attach.tpl @@ -175,7 +175,7 @@

-
+

{L_PLAYBACK_M3U}

{L_PLAYBACK_M3U}