Update displaying_torrent.php

This commit is contained in:
Roman Kelesidis 2025-05-05 18:42:45 +03:00
commit 45fcc412ab

View file

@ -463,6 +463,7 @@ if ($tor_reged && $tor_info) {
}
$peerCountry = $lang['UNKNOWN'];
if ($bb_cfg['ip2country_settings']['enabled']) {
if (IS_AM || $peer['user_id'] == $userdata['user_id'] || !bf($peer['user_opt'], 'user_opt', 'user_hide_peer_country')) {
if ($infoByIP = infoByIP((!empty($peer['ipv6']) ? $peer['ipv6'] : $peer['ip']), $peer['port'])) {
if (!empty($infoByIP['countryCode'])) {
@ -470,6 +471,7 @@ if ($tor_reged && $tor_info) {
}
}
}
}
$template->assign_block_vars("$x_full.$x_row", [
'ROW_BGR' => $row_bgr,