From a5b32d01f5182c7a14d741d15c2e5cd718bf86c8 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Thu, 5 Apr 2012 15:38:40 +0000 Subject: [PATCH] // Fix geolocalisation management git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14502 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/controller/FrontController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/controller/FrontController.php b/classes/controller/FrontController.php index f04126f76..8fe1db462 100755 --- a/classes/controller/FrontController.php +++ b/classes/controller/FrontController.php @@ -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; } -} \ No newline at end of file +}