From 99409458242004dedf489aa9e6b52781fa85653c Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Fri, 14 Jun 2024 13:57:28 +0700 Subject: [PATCH] Minor improvements (#1509) * Minor improvements * Update CHANGELOG.md * Update torrent_show_dl_list.php --- CHANGELOG.md | 2 +- library/includes/datastore/build_files_integrity.php | 1 - library/includes/init_bb.php | 1 - library/includes/torrent_show_dl_list.php | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01449d0c0..398c7e722 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ - Some security enhancements (Part 2) [\#1505](https://github.com/torrentpier/torrentpier/pull/1505) ([belomaxorka](https://github.com/belomaxorka)) - Some improvements for integrity checker [\#1501](https://github.com/torrentpier/torrentpier/pull/1501) ([belomaxorka](https://github.com/belomaxorka)) - Hide vote button in topic if guest [\#1507](https://github.com/torrentpier/torrentpier/pull/1507) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#1502](https://github.com/torrentpier/torrentpier/pull/1502), [\#1506](https://github.com/torrentpier/torrentpier/pull/1506) ([belomaxorka](https://github.com/belomaxorka)) +- Minor improvements [\#1502](https://github.com/torrentpier/torrentpier/pull/1502), [\#1506](https://github.com/torrentpier/torrentpier/pull/1506), [\#1509](https://github.com/torrentpier/torrentpier/pull/1509) ([belomaxorka](https://github.com/belomaxorka)) - New Crowdin updates [\#1504](https://github.com/torrentpier/torrentpier/pull/1504) ([Exileum](https://github.com/Exileum)) ## [v2.4.3](https://github.com/torrentpier/torrentpier/tree/v2.4.3) (2024-06-09) diff --git a/library/includes/datastore/build_files_integrity.php b/library/includes/datastore/build_files_integrity.php index 2d730c838..f850f264b 100644 --- a/library/includes/datastore/build_files_integrity.php +++ b/library/includes/datastore/build_files_integrity.php @@ -39,7 +39,6 @@ $ignoreFiles = [ 'styles/images/logo/logo.png' ]; -$lines = []; foreach ($checksumFile as $line) { $parts = explode(' ', $line); if (!isset($parts[0]) || !isset($parts[1])) { diff --git a/library/includes/init_bb.php b/library/includes/init_bb.php index 6edf70195..bc9a50415 100644 --- a/library/includes/init_bb.php +++ b/library/includes/init_bb.php @@ -74,7 +74,6 @@ define('COOKIE_PM', $c . 'pm'); unset($c); define('COOKIE_SESSION', 0); -define('COOKIE_EXPIRED', TIMENOW - 31536000); define('COOKIE_PERSIST', TIMENOW + 31536000); define('COOKIE_MAX_TRACKS', 90); diff --git a/library/includes/torrent_show_dl_list.php b/library/includes/torrent_show_dl_list.php index 6a95a72b9..55ebaf448 100644 --- a/library/includes/torrent_show_dl_list.php +++ b/library/includes/torrent_show_dl_list.php @@ -72,7 +72,7 @@ if ($show_dl_list) { $dl_count[$u['user_status']] = $u['username']; } else { $u_prof_href = ($u['user_id'] == GUEST_UID) ? '#' : PROFILE_URL . $u['user_id'] . "#torrent"; - $dl_cat[$u['user_status']] .= '' . profile_url(['username' => $u['username'], 'user_rank' => $u['user_rank']]) . ', '; + $dl_cat[$u['user_status']] .= '' . profile_url($u) . ', '; $dl_count[$u['user_status']]++; } }