Update functions_torrent.php

This commit is contained in:
Roman Kelesidis 2023-10-26 17:57:02 +07:00
parent bf6d6d08a9
commit 01de004a4b

View File

@ -479,7 +479,7 @@ function send_torrent_with_passkey ($filename)
if (!$tor = bdecode_file($filename)) if (!$tor = bdecode_file($filename))
{ {
bb_die('This is not a bencoded file'); bb_die($lang['TORFILE_INVALID']);
} }
$announce = $bb_cfg['ocelot']['enabled'] ? strval($bb_cfg['ocelot']['url'] .$passkey_val. "/announce") : strval($ann_url . "?$passkey_key=$passkey_val"); $announce = $bb_cfg['ocelot']['enabled'] ? strval($bb_cfg['ocelot']['url'] .$passkey_val. "/announce") : strval($ann_url . "?$passkey_key=$passkey_val");