From: Stefan Schantl Date: Fri, 12 Jun 2020 15:53:29 +0000 (+0200) Subject: country.cgi: Use location-functions.pl X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d1a23835dba451899df2cbeb496f6719b5799339;p=people%2Fms%2Fipfire-2.x.git country.cgi: Use location-functions.pl Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/country.cgi b/html/cgi-bin/country.cgi index 8df2427a9e..a1cf243473 100644 --- a/html/cgi-bin/country.cgi +++ b/html/cgi-bin/country.cgi @@ -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 "$country";