From f080d753a0beb6b6e0d667c5570843f493fc48da Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Tue, 5 Apr 2011 13:25:44 +0000 Subject: check if geoip lib is already there --- lib/Downloads.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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'), -- cgit v1.2.1