From c2dadb15b48f12951078aeefee41c6bf12f7dfd1 Mon Sep 17 00:00:00 2001 From: Eeroz Date: Sun, 13 Apr 2014 22:14:30 +0300 Subject: [PATCH] Fixed misleading site log (freeleech reason instead of freeleech type/status) --- classes/torrents.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/torrents.class.php b/classes/torrents.class.php index c630ad35..e980c96b 100644 --- a/classes/torrents.class.php +++ b/classes/torrents.class.php @@ -722,8 +722,8 @@ public static function freeleech_torrents($TorrentIDs, $FreeNeutral = 1, $FreeLe list($TorrentID, $GroupID, $InfoHash) = $Torrent; Tracker::update_tracker('update_torrent', array('info_hash' => rawurlencode($InfoHash), 'freetorrent' => $FreeNeutral)); G::$Cache->delete_value("torrent_download_$TorrentID"); - Misc::write_log(G::$LoggedUser['Username']." marked torrent $TorrentID freeleech type $FreeLeechType!"); - Torrents::write_group_log($GroupID, $TorrentID, G::$LoggedUser['ID'], "marked as freeleech type $FreeLeechType!", 0); + Misc::write_log(G::$LoggedUser['Username']." marked torrent $TorrentID freeleech type $FreeNeutral with reason $FreeLeechType!"); + Torrents::write_group_log($GroupID, $TorrentID, G::$LoggedUser['ID'], "marked as freeleech type $FreeNeutral with reason $FreeLeechType!", 0); } foreach ($GroupIDs as $GroupID) {