X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fcontrollers%2FIdxController.php;h=ee1efb06d291453c9dccc14647efc81eb5efbba3;hp=3996fa04e8e6c5c4adfc7de65293b0627c382cbf;hb=a3870411b5c5217e7b2f063d2929fc2e14daa962;hpb=dfdbbefb4b79dd3d04123ccf3128172684721371 diff --git a/application/controllers/IdxController.php b/application/controllers/IdxController.php index 3996fa0..ee1efb0 100644 --- a/application/controllers/IdxController.php +++ b/application/controllers/IdxController.php @@ -66,8 +66,7 @@ class IdxController extends Zend_Controller_Action $geomform->geom_title->setValue($path->title); } else { $geomform->setAction('path'); - $clientip = trim(end(split(',', $this->getRequest()->getClientIp(true)))); - $extent = new phptojs\JsObject('gMaxExtent', $this->_helper->syjGeoip($clientip)); + $extent = new phptojs\JsObject('gMaxExtent', $this->_helper->syjGeoip($this->getRequest()->getClientIp(true))); $this->view->headScript()->prependScript((string) $extent); $title = "Show your journey"; }