Use TORRENT_EXT constants for definition torrent extension (#1096)

This commit is contained in:
Roman Kelesidis 2023-11-14 14:33:17 +07:00 committed by GitHub
commit 2234c8145b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ if ($tor_auth_reg || $tor_auth_del) {
$tracker_link = ($tor_reged) ? $unreg_tor_url : $reg_tor_url;
}
$display_name = wbr($t_data['topic_title']) . ' [' . $bb_cfg['server_name'] . '-' . $bt_topic_id . ']' . '.torrent';
$display_name = wbr($t_data['topic_title']) . ' [' . $bb_cfg['server_name'] . '-' . $bt_topic_id . ']' . '.' . TORRENT_EXT;
if (!$tor_reged) {
$template->assign_block_vars('postrow.attach.tor_not_reged', [

View file

@ -599,7 +599,7 @@ class Torrent
// Send torrent
$output = \Arokettu\Bencode\Bencode::encode($tor);
$dl_fname = html_entity_decode($topic_title, ENT_QUOTES, 'UTF-8') . ' [' . $bb_cfg['server_name'] . '-' . $topic_id . ']' . '.torrent';
$dl_fname = html_entity_decode($topic_title, ENT_QUOTES, 'UTF-8') . ' [' . $bb_cfg['server_name'] . '-' . $topic_id . ']' . '.' . TORRENT_EXT;
if (!empty($_COOKIE['explain'])) {
$out = "attach path: $filename<br /><br />";