From 0893eef4cc312c29091541bec2719dbc39d9fb34 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Fri, 12 Jun 2020 18:48:24 +0200 Subject: [PATCH] tor.cgi: Use location-functions.pl Signed-off-by: Stefan Schantl --- html/cgi-bin/tor.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/cgi-bin/tor.cgi b/html/cgi-bin/tor.cgi index d31eb1086..c9416be01 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) {