From dd26eda857e670b5e217de81392f0873cc380651 Mon Sep 17 00:00:00 2001 From: Exile Date: Tue, 19 Aug 2014 14:33:27 +0400 Subject: [PATCH] Disable DC++ magnets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Отключение магнитов для хабов при отключении магнитов в целом. --- upload/ajax/view_torrent.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/upload/ajax/view_torrent.php b/upload/ajax/view_torrent.php index 7df15cf13..af2327b8e 100644 --- a/upload/ajax/view_torrent.php +++ b/upload/ajax/view_torrent.php @@ -156,10 +156,15 @@ class torrent function build_file_item ($name, $length) { - global $images, $lang; + global $bb_cfg, $images, $lang; - $magnet_name = ''; - $magnet_ext = ''; + $magnet_name = $magnet_ext = ''; + + if ($bb_cfg['magnet_links_enabled']) + { + $magnet_name = ''; + $magnet_ext = ''; + } return "$name $length $magnet_name $magnet_ext"; }