// Fix geolocalisation management

This commit is contained in:
rGaillard committed 2012-04-05 15:38:40 +00:00
1 parent 0df4b21135
commit c492457bf3
1 file changed
+1 -1
+1 -1
View File
@@ -641,7 +641,7 @@ class FrontControllerCore extends Controller
include_once(_PS_GEOIP_DIR_.'geoipregionvars.php'); include_once(_PS_GEOIP_DIR_.'geoipregionvars.php');
$gi = geoip_open(realpath(_PS_GEOIP_DIR_.'GeoLiteCity.dat'), GEOIP_STANDARD); $gi = geoip_open(realpath(_PS_GEOIP_DIR_.'GeoLiteCity.dat'), GEOIP_STANDARD);
$record = geoip_record_by_addr($gi, '81.57.72.226');//Tools::getRemoteAddr()); $record = geoip_record_by_addr($gi, Tools::getRemoteAddr());
if (is_object($record)) if (is_object($record))
{ {