]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
country.cgi: Use location-functions.pl
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 12 Jun 2020 15:53:29 +0000 (17:53 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 12 Jun 2020 15:53:29 +0000 (17:53 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/country.cgi

index 8df2427a9eb10d24fd43bd8c5ce1b36cceecb416..a1cf24347396fcdd50a5b75465154ad6a2ea6dac 100644 (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>";