mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Minor improvements (#1472)
* Minor improvements * Update torrent_announce_urls.php * Updated * Update CHANGELOG.md * Update CHANGELOG.md * Update functions.php
This commit is contained in:
parent
54c8b0bf2c
commit
30df72e331
5 changed files with 8 additions and 8 deletions
|
@ -1200,8 +1200,8 @@ function render_flag(string $code, bool $showName = true): string
|
|||
} else {
|
||||
$flagIconPath = BB_ROOT . 'styles/images/flags/' . $code . $iconExtension;
|
||||
if (is_file($flagIconPath)) {
|
||||
$countryName = $showName ? str_short($lang['COUNTRIES'][$code], 20) : '';
|
||||
return '<img src="' . $flagIconPath . '" class="poster-flag" alt="' . $code . '" title="' . $lang['COUNTRIES'][$code] . '">' . $countryName;
|
||||
$countryName = $showName ? ' ' . str_short($lang['COUNTRIES'][$code], 20) : '';
|
||||
return '<span title="' . $lang['COUNTRIES'][$code] . '"><img src="' . $flagIconPath . '" class="poster-flag" alt="' . $code . '">' . $countryName . '</span>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue