]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/IdxController.php
revert a86eeac0ab678ea55307e1386c5f955f77d8ff73
[syj.git] / application / controllers / IdxController.php
index 3996fa04e8e6c5c4adfc7de65293b0627c382cbf..ee1efb06d291453c9dccc14647efc81eb5efbba3 100644 (file)
@@ -66,8 +66,7 @@ class IdxController extends Zend_Controller_Action
             $geomform->geom_title->setValue($path->title);
         } else {
             $geomform->setAction('path');
             $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";
         }
             $this->view->headScript()->prependScript((string) $extent);
             $title = "Show your journey";
         }