aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Downloads.php6
1 files changed, 3 insertions, 3 deletions
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);