]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Transform geoip-functions.pl into location-functions.pl
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 12 Jun 2020 15:42:41 +0000 (17:42 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 12 Jun 2020 15:42:41 +0000 (17:42 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/location-functions.pl [moved from config/cfgroot/geoip-functions.pl with 97% similarity]

similarity index 97%
rename from config/cfgroot/geoip-functions.pl
rename to config/cfgroot/location-functions.pl
index d516ae89cd48f028737e419d547555c2d83c4063..ab99e71d37ba4c6bf61f83a43e285d80e4d888ec 100644 (file)
 # 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 <info@ipfire.org>.                        #
+# Copyright (C) 2015 - 2020 IPFire Team <info@ipfire.org>.                 #
 #                                                                          #
 ############################################################################
 
-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.