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