// Fix geolocalisation management

This commit is contained in:
rGaillard
2012-04-05 15:38:40 +00:00
parent 0df4b21135
commit c492457bf3
+2 -2
View File
@@ -641,7 +641,7 @@ class FrontControllerCore extends Controller
include_once(_PS_GEOIP_DIR_.'geoipregionvars.php');
$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))
{
@@ -1027,4 +1027,4 @@ class FrontControllerCore extends Controller
$this->context->smarty->assign($assign);
$this->template = $template;
}
}
}