]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ipinfo.cgi: Fix calling get_continent_code().
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 8 Jul 2020 17:28:36 +0000 (19:28 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 8 Jul 2020 17:28:36 +0000 (19:28 +0200)
This function is provided by the Location perl module and directly can
be called.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ipinfo.cgi

index 0bbb96330a5405b77293c9b829c497fa8aea9aa8..978488cb167a64b7e7252694051a613a6d711100 100644 (file)
@@ -66,7 +66,7 @@ if (&General::validip($addr)) {
        my $ccode = &Location::Functions::lookup_country_code($db_handle, $addr);
 
        # Try to get the continent of the country code.
-       my $continent = &Location::Functions::get_continent_code($db_handle, $ccode);
+       my $continent = &Location::get_continent_code($db_handle, $ccode);
 
        # Check if a whois server for the continent is known.
        if($whois_servers_by_continent{$continent}) {