diff --git a/library/includes/file_list_v2.php b/library/includes/file_list_v2.php index 17ce90cd5..731dea214 100644 --- a/library/includes/file_list_v2.php +++ b/library/includes/file_list_v2.php @@ -18,7 +18,7 @@ if ($bb_cfg['bt_disable_dht'] && IS_GUEST) { die($lang['BT_PRIVATE_TRACKER']); } -$topic_id = !empty($_GET['t']) ? (int)$_GET['t'] : (http_response_code(404) && die($lang['INVALID_TOPIC_ID'])); +$topic_id = !empty($_GET['topic']) ? (int)$_GET['topic'] : (http_response_code(404) && die($lang['INVALID_TOPIC_ID'])); $sql = 'SELECT t.attach_id, t.info_hash_v2, ad.physical_filename FROM ' . BB_BT_TORRENTS . ' t diff --git a/styles/templates/default/viewtopic_attach.tpl b/styles/templates/default/viewtopic_attach.tpl index a4350502e..83ccdcbf1 100644 --- a/styles/templates/default/viewtopic_attach.tpl +++ b/styles/templates/default/viewtopic_attach.tpl @@ -169,7 +169,7 @@
{postrow.attach.tor_reged.FILESIZE}
- +