From 220c658891488f60f40d2480ff739c5edb7b6eca Mon Sep 17 00:00:00 2001 From: warezzz Date: Thu, 15 Jan 2015 16:31:33 +0400 Subject: [PATCH] Update functions.php Add ocelot url in magnet --- library/includes/functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/includes/functions.php b/library/includes/functions.php index d4db85468..78474068a 100644 --- a/library/includes/functions.php +++ b/library/includes/functions.php @@ -2560,6 +2560,9 @@ function create_magnet ($infohash, $auth_key, $logged_in) global $bb_cfg, $_GET, $userdata, $images; $passkey_url = ((!$logged_in || isset($_GET['no_passkey'])) && $bb_cfg['bt_tor_browse_only_reg']) ? '' : "?{$bb_cfg['passkey_key']}=$auth_key"; + if($bb_cfg['ocelot']['enabled']){ + return ''; + } return ''; } @@ -2824,4 +2827,4 @@ function bb_captcha ($mode, $callback = '') bb_simple_die(__FUNCTION__ .": invalid mode '$mode'"); } return false; -} \ No newline at end of file +}