// Fix geolocalisation management
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14502 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user