From 2d86f730d7ce455bd70dc76dfc5b3d3f4eb01877 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Sat, 25 Feb 2012 15:17:53 +0000 Subject: wrap mga_geoip code --- lib/Downloads.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Downloads.php') diff --git a/lib/Downloads.php b/lib/Downloads.php index b96111dbd..1a31c8082 100644 --- a/lib/Downloads.php +++ b/lib/Downloads.php @@ -242,8 +242,8 @@ class Downloads if (is_null($country)) { require_once realpath(__DIR__ . '/mga_geoip.php'); - $country = mga_geoip_country_by_ip($ip, false); - $continent = mga_geoip_continent_by_country($country); + $country = MGA_Geoip::mga_geoip_country_by_ip($ip, false); + $continent = MGA_Geoip::mga_geoip_continent_by_country($country); $fuzzy_mirror = true; $_SESSION['country'] = $country; $_SESSION['continent'] = $continent; -- cgit v1.2.1