]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
tor.cgi: Use location-functions.pl
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 12 Jun 2020 16:48:24 +0000 (18:48 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 12 Jun 2020 16:48:24 +0000 (18:48 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/tor.cgi

index d31eb10862e129b3bbad2f3aa72f540a2128ec11..c9416be011bbdb76fbb3370aa618e3beed68667e 100644 (file)
@@ -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) {