From 1846a70a5b572f38032cff930256e40171242173 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Tue, 20 Dec 2011 14:32:27 +0000 Subject: fix include of geoip code/lib --- lib/Downloads.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Downloads.php') diff --git a/lib/Downloads.php b/lib/Downloads.php index 88a374a40..9406379b1 100644 --- a/lib/Downloads.php +++ b/lib/Downloads.php @@ -178,8 +178,8 @@ class Downloads } else { - require_once '../../lib/maxmind/geoip/geoip.inc.php'; - $gi = geoip_open(realpath('../../lib/maxmind/geoip/GeoIP.dat'), GEOIP_STANDARD); + require_once realpath(__DIR__ . '/maxmind/geoip/geoip.inc.php'); + $gi = geoip_open(realpath(__DIR__ . '/maxmind/geoip/GeoIP.dat'), GEOIP_STANDARD); $loc = @geoip_country_code_by_addr($gi, $ip); geoip_close($gi); } @@ -188,7 +188,7 @@ class Downloads return strtoupper($loc); } - + function prepare_download($force = false, $country = null) { return $this->get_one_mirror($force, $country); -- cgit v1.2.1