From: Stefan Schantl Date: Fri, 12 Jun 2020 16:48:24 +0000 (+0200) Subject: tor.cgi: Use location-functions.pl X-Git-Tag: v2.25-core148~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0893eef4cc312c29091541bec2719dbc39d9fb34;p=ipfire-2.x.git tor.cgi: Use location-functions.pl Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/tor.cgi b/html/cgi-bin/tor.cgi index d31eb10862..c9416be011 100644 --- a/html/cgi-bin/tor.cgi +++ b/html/cgi-bin/tor.cgi @@ -27,7 +27,7 @@ use Locale::Codes::Country; #use CGI::Carp 'fatalsToBrowser'; 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"; @@ -618,7 +618,7 @@ END if (exists($node->{'country_code'})) { # Get the flag icon of the country. - my $flag_icon = &GeoIP::get_flag_icon($node->{'country_code'}); + my $flag_icon = &Location::Functions::get_flag_icon($node->{'country_code'}); # Check if a flag for the given country is available. if ($flag_icon) {