From: Stefan Schantl Date: Fri, 12 Jun 2020 15:42:41 +0000 (+0200) Subject: Transform geoip-functions.pl into location-functions.pl X-Git-Tag: v2.25-core148~57 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=48152fae627a9882b0d4193e6023fd50d925d155 Transform geoip-functions.pl into location-functions.pl Signed-off-by: Stefan Schantl --- diff --git a/config/cfgroot/geoip-functions.pl b/config/cfgroot/location-functions.pl similarity index 97% rename from config/cfgroot/geoip-functions.pl rename to config/cfgroot/location-functions.pl index d516ae89cd..ab99e71d37 100644 --- a/config/cfgroot/geoip-functions.pl +++ b/config/cfgroot/location-functions.pl @@ -17,11 +17,11 @@ # along with IPFire; if not, write to the Free Software # # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # # -# Copyright (C) 2015 IPFire Team . # +# Copyright (C) 2015 - 2020 IPFire Team . # # # ############################################################################ -package GeoIP; +package Location::Functions; use Location; use Locale::Codes::Country; @@ -165,8 +165,8 @@ sub get_full_country_name($) { return $name; } -# Function to get all available GeoIP locations. -sub get_geoip_locations() { +# Function to get all available locations. +sub get_locations() { my @locations = (); # Get listed country codes from ISO 3166-1.