mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 13:24:01 -07:00
Fix currently not working peer icons (#986)
This commit is contained in:
parent
d420ce0a7f
commit
c05278bb16
1 changed files with 1 additions and 6 deletions
|
@ -1232,12 +1232,7 @@ function get_user_torrent_client(string $peer_id): mixed
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($bestMatch)) {
|
if (!empty($bestMatch)) {
|
||||||
$client_icons_dir = IMAGES_DIR . '/clients/' . $bestMatch . $icons_extension;
|
return '<img width="auto" height="auto" style="display:inline!important;vertical-align:middle" src="/styles/images/clients/'. $bestMatch .'.png" alt="' . $bestMatch . '" title="' . $peer_id . '">';
|
||||||
if (file_exists($client_icons_dir)) {
|
|
||||||
return '<img width="auto" height="auto" style="display: inline !important; vertical-align: middle;" src="' . $client_icons_dir . '" alt="' . $peer_id . '" title="' . $bestMatch . '">';
|
|
||||||
} else {
|
|
||||||
return $bestMatch;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
return $peer_id;
|
return $peer_id;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue