From 8ee03619a1b332242f42ad2959e36eeb4d72bb19 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 5 Oct 2023 09:26:31 +0700 Subject: [PATCH] Minor improvements (#300) * Minor improvements * Update CHANGELOG.md --- CHANGELOG.md | 2 +- library/ajax/group_membership.php | 2 +- library/attach_mod/displaying_torrent.php | 2 +- library/includes/functions_atom.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5210f141..eb556017 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ **Merged pull requests:** - Release v2.1.5-2023.10 🎉 -- Minor improvements [\#297](https://github.com/torrentpier/torrentpier-lts/pull/297), [\#298](https://github.com/torrentpier/torrentpier-lts/pull/298) ([belomaxorka](https://github.com/belomaxorka)) +- Minor improvements [\#297](https://github.com/torrentpier/torrentpier-lts/pull/297), [\#298](https://github.com/torrentpier/torrentpier-lts/pull/298), [\#300](https://github.com/torrentpier/torrentpier-lts/pull/300) ([belomaxorka](https://github.com/belomaxorka)) ## [v2.1.5-2023.09](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.09) (2023-10-04) [Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.08-HotFix...v2.1.5-2023.09) diff --git a/library/ajax/group_membership.php b/library/ajax/group_membership.php index da8bae14..81bbeadd 100644 --- a/library/ajax/group_membership.php +++ b/library/ajax/group_membership.php @@ -30,7 +30,7 @@ switch ($mode) { $class = ($row['user_pending']) ? 'med' : 'med bold'; $class .= ($row['group_moderator'] == $user_id) ? ' colorMod' : ''; - $href = "group.php?g={$row['group_id']}"; + $href = GROUP_URL . $row['group_id']; if (IS_ADMIN) { diff --git a/library/attach_mod/displaying_torrent.php b/library/attach_mod/displaying_torrent.php index a226f219..b471791b 100644 --- a/library/attach_mod/displaying_torrent.php +++ b/library/attach_mod/displaying_torrent.php @@ -462,7 +462,7 @@ if ($tor_reged && $tor_info) if (!defined('LEECHER_EXIST')) { define('LEECHER_EXIST', true); - $leech_order_action = "viewtopic.php?". POST_TOPIC_URL ."=$bt_topic_id&spmode=full#leechers"; + $leech_order_action = TOPIC_URL ."$bt_topic_id&spmode=full#leechers"; $template->assign_block_vars("$x_full", array( 'LEECH_ORD_ACT' => $leech_order_action, diff --git a/library/includes/functions_atom.php b/library/includes/functions_atom.php index 231fa7ab..d4bc103b 100644 --- a/library/includes/functions_atom.php +++ b/library/includes/functions_atom.php @@ -174,7 +174,7 @@ function create_atom ($file_path, $mode, $id, $title, $topics) $atom .= " \n"; $atom .= " ". $date ."T$time+00:00\n"; $atom .= " tag:rto.feed,". $date .":/t/$topic_id\n"; - $atom .= " \n"; + $atom .= " \n"; $atom .= "\n"; } $atom .= ""; @@ -183,4 +183,4 @@ function create_atom ($file_path, $mode, $id, $title, $topics) fwrite($fp, $atom); fclose ($fp); return true; -} \ No newline at end of file +}