Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Commit 40532cb

Browse files
committed
Flags Fix
1 parent 460f186 commit 40532cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

inc/functions.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,18 @@ function toSteamID_NO_STEAM($id) {
6767

6868
function CountryFlag($country, $country_flag, $continent_flag) {
6969
if(!empty($country_flag))
70-
return '<img class="bg-transparent border" title="'.$country.'" height="16" src="./images/flags/'.$country_flag.'.svg"/>';
70+
return '<img class="bg-transparent border" title="'.$country.'" height="16" src="./images/flags/'.strtolower($country_flag).'.svg"/>';
7171
elseif(!empty($continent_flag))
72-
return '<img class="bg-transparent border" title="'.$country.'" height="16" src="./images/flags/continents/'.$continent_flag.'.svg"/>';
72+
return '<img class="bg-transparent border" title="'.$country.'" height="16" src="./images/flags/continents/'.strtolower($continent_flag).'.svg"/>';
7373
else
7474
return '<img class="bg-transparent border" title="'.$country.'" height="16" src="./images/flags/unknown.svg"/>';
7575
}
7676

7777
function CountryFlagProfile($countryCode, $continentCode) {
7878
if(!empty($countryCode))
79-
return '<img class="rounded border bg-transparent shadow-sm mb-1" height="20" src="./images/flags/'.$countryCode.'.svg"/>';
79+
return '<img class="rounded border bg-transparent shadow-sm mb-1" height="20" src="./images/flags/'.strtolower($countryCode).'.svg"/>';
8080
elseif(!empty($continent_flag))
81-
return '<img class="rounded border bg-transparent shadow-sm mb-1" height="20" src="./images/flags/continents/'.$continentCode.'.svg"/>';
81+
return '<img class="rounded border bg-transparent shadow-sm mb-1" height="20" src="./images/flags/continents/'.strtolower($continentCode).'.svg"/>';
8282
else
8383
return '<img class="rounded border bg-transparent shadow-sm mb-1" height="20" src="./images/flags/unknown.svg" alt="Unknown FLag"/>';
8484
}

0 commit comments

Comments
 (0)