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:
Roman Kelesidis 2024-05-07 16:22:43 +07:00 committed by GitHub
commit 30df72e331
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 8 additions and 8 deletions

View file

@ -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 ? '&nbsp;' . str_short($lang['COUNTRIES'][$code], 20) : '';
return '<span title="' . $lang['COUNTRIES'][$code] . '"><img src="' . $flagIconPath . '" class="poster-flag" alt="' . $code . '">' . $countryName . '</span>';
}
}
}