aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Downloads.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-12-20 14:32:27 +0000
committerRomain d'Alverny <rda@mageia.org>2011-12-20 14:32:27 +0000
commit1846a70a5b572f38032cff930256e40171242173 (patch)
tree11433be510633af46d15ba7464c954e48819824f /lib/Downloads.php
parentd8ff80491a2c2ad325bb5496e6572808fb42afc6 (diff)
downloadwww-1846a70a5b572f38032cff930256e40171242173.tar
www-1846a70a5b572f38032cff930256e40171242173.tar.gz
www-1846a70a5b572f38032cff930256e40171242173.tar.bz2
www-1846a70a5b572f38032cff930256e40171242173.tar.xz
www-1846a70a5b572f38032cff930256e40171242173.zip
fix include of geoip code/lib
Diffstat (limited to 'lib/Downloads.php')
-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);