Include full url for client icon displaying (#1088)

This commit is contained in:
Cønstantine Kovalensky 2023-11-12 22:21:04 +04:00 committed by GitHub
commit 58596953e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1237,7 +1237,7 @@ function get_user_torrent_client(string $peerId): mixed
}
if (!empty($bestMatch)) {
return '<img width="auto" height="auto" style="display:inline!important;vertical-align:middle" src="/styles/images/clients/'. $bestMatch . $iconExtension . '" alt="' . $bestMatch . '" title="' . $peerId . '">';
return '<img width="auto" height="auto" style="display:inline!important;vertical-align:middle" src="' . FULL_URL . 'styles/images/clients/'. $bestMatch . $iconExtension . '" alt="' . $bestMatch . '" title="' . $peerId . '">';
}
return $peerId;