country.cgi: Use location-functions.pl

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2020-06-12 17:53:29 +02:00
parent 3d3fbe7dc4
commit d1a23835db

View File

@@ -28,7 +28,7 @@ my $lines = '1';
my $lines2 = '';
require '/var/ipfire/general-functions.pl';
require "${General::swroot}/geoip-functions.pl";
require "${General::swroot}/location-functions.pl";
require "${General::swroot}/lang.pl";
require "${General::swroot}/header.pl";
@@ -63,10 +63,10 @@ foreach my $country (@countries) {
$country = uc($country);
# Get flag icon for of the country.
my $flag_icon = &GeoIP::get_flag_icon($country);
my $flag_icon = &Location::Functions::get_flag_icon($country);
# Get country name.
my $name = &GeoIP::get_full_country_name($country);
my $name = &Location::Functions::get_full_country_name($country);
if ($lines % 2) {
print "<td $col><a id='$country'><img src='$flag_icon' alt='$country' title='$country'/></a></td>";