From c05278bb16351e886f73d03b707423a4de6497ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B8nstantine=20Kovalensky?= <45331093+kovalensky@users.noreply.github.com> Date: Wed, 25 Oct 2023 18:46:03 +0400 Subject: [PATCH] Fix currently not working peer icons (#986) --- library/includes/functions.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/library/includes/functions.php b/library/includes/functions.php index 481174d10..caf7a9d9f 100644 --- a/library/includes/functions.php +++ b/library/includes/functions.php @@ -1232,12 +1232,7 @@ function get_user_torrent_client(string $peer_id): mixed } if (!empty($bestMatch)) { - $client_icons_dir = IMAGES_DIR . '/clients/' . $bestMatch . $icons_extension; - if (file_exists($client_icons_dir)) { - return '' . $peer_id . ''; - } else { - return $bestMatch; - } + return '' . $bestMatch . ''; } else { return $peer_id; }