This commit is contained in:
Roman Kelesidis 2023-11-14 14:25:34 +07:00
parent 0892b55124
commit 8e67737e92
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ if ($tor_auth_reg || $tor_auth_del)
if ($bb_cfg['torrent_name_style'])
{
$display_name = '['.$bb_cfg['server_name'].'].t' . $bt_topic_id . '.torrent';
$display_name = '['.$bb_cfg['server_name'].'].t' . $bt_topic_id . '.' . TORRENT_EXT;
}
if (!$tor_reged)

View File

@ -546,7 +546,7 @@ function send_torrent_with_passkey ($filename)
// Send torrent
$output = bencode($tor);
$dl_fname = ($bb_cfg['torrent_name_style'] ? '['.$bb_cfg['server_name'].'].t' . $topic_id . '.torrent' : clean_filename(basename($attachment['real_filename'])));
$dl_fname = ($bb_cfg['torrent_name_style'] ? '['.$bb_cfg['server_name'].'].t' . $topic_id . '.' . TORRENT_EXT : clean_filename(basename($attachment['real_filename'])));
if (!empty($_COOKIE['explain']))
{