Fixed misleading site log (freeleech reason instead of freeleech type/status)

This commit is contained in:
Eeroz 2014-04-13 22:14:30 +03:00
parent f544294c3a
commit c2dadb15b4

View File

@ -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) {