aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Downloads.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-04-05 13:26:55 +0000
committerRomain d'Alverny <rda@mageia.org>2011-04-05 13:26:55 +0000
commitc1a10ccddf739c83b7510fc27195883c2c75fcfc (patch)
tree37547bff993a636f1658d385a1f5f39d5b89baf2 /lib/Downloads.php
parentf080d753a0beb6b6e0d667c5570843f493fc48da (diff)
downloadwww-c1a10ccddf739c83b7510fc27195883c2c75fcfc.tar
www-c1a10ccddf739c83b7510fc27195883c2c75fcfc.tar.gz
www-c1a10ccddf739c83b7510fc27195883c2c75fcfc.tar.bz2
www-c1a10ccddf739c83b7510fc27195883c2c75fcfc.tar.xz
www-c1a10ccddf739c83b7510fc27195883c2c75fcfc.zip
argh
Diffstat (limited to 'lib/Downloads.php')
-rw-r--r--lib/Downloads.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Downloads.php b/lib/Downloads.php
index b6d802f9a..eca84284c 100644
--- a/lib/Downloads.php
+++ b/lib/Downloads.php
@@ -156,7 +156,7 @@ class Downloads
if ($ip == '127.0.0.1' || $ip == '::1')
return null;
- if (!defined('geoip_country_code_by_name')) {
+ if (!function_exists('geoip_open')) {
require_once '../../lib/maxmind/geoip/geoip.inc.php';
}
$gi = geoip_open(realpath('../../lib/maxmind/geoip/GeoIP.dat'),