aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-04-05 13:25:44 +0000
committerRomain d'Alverny <rda@mageia.org>2011-04-05 13:25:44 +0000
commitf080d753a0beb6b6e0d667c5570843f493fc48da (patch)
treecff92ebfc64cac59f73815a6bab609c02b944416
parent3957e892a30d7e6eb0288bf34cbfb80aa7b877ca (diff)
downloadwww-f080d753a0beb6b6e0d667c5570843f493fc48da.tar
www-f080d753a0beb6b6e0d667c5570843f493fc48da.tar.gz
www-f080d753a0beb6b6e0d667c5570843f493fc48da.tar.bz2
www-f080d753a0beb6b6e0d667c5570843f493fc48da.tar.xz
www-f080d753a0beb6b6e0d667c5570843f493fc48da.zip
check if geoip lib is already there
-rw-r--r--lib/Downloads.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Downloads.php b/lib/Downloads.php
index a8ecc109d..b6d802f9a 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_open')) {
+ if (!defined('geoip_country_code_by_name')) {
require_once '../../lib/maxmind/geoip/geoip.inc.php';
}
$gi = geoip_open(realpath('../../lib/maxmind/geoip/GeoIP.dat'),