aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Downloads.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-02-25 15:17:53 +0000
committerRomain d'Alverny <rda@mageia.org>2012-02-25 15:17:53 +0000
commit2d86f730d7ce455bd70dc76dfc5b3d3f4eb01877 (patch)
tree6cb29dc6086916d34a41daebf96dcc67e1d0a712 /lib/Downloads.php
parentef1f4f0c4ea92c65dfa7c03ac324fdd0a89f6ff1 (diff)
downloadwww-2d86f730d7ce455bd70dc76dfc5b3d3f4eb01877.tar
www-2d86f730d7ce455bd70dc76dfc5b3d3f4eb01877.tar.gz
www-2d86f730d7ce455bd70dc76dfc5b3d3f4eb01877.tar.bz2
www-2d86f730d7ce455bd70dc76dfc5b3d3f4eb01877.tar.xz
www-2d86f730d7ce455bd70dc76dfc5b3d3f4eb01877.zip
wrap mga_geoip code
Diffstat (limited to 'lib/Downloads.php')
-rw-r--r--lib/Downloads.php4
1 files changed, 2 insertions, 2 deletions
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;