From d1a23835dba451899df2cbeb496f6719b5799339 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Fri, 12 Jun 2020 17:53:29 +0200 Subject: [PATCH] country.cgi: Use location-functions.pl Signed-off-by: Stefan Schantl --- html/cgi-bin/country.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"; -- 2.39.5