X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fcontrollers%2FIdxController.php;h=c53b11b2146320b626aec2bc67e4e7314f1970f0;hb=9d450c0eb88cc1cc19db9ad4334bc1fc68f5ee21;hp=3996fa04e8e6c5c4adfc7de65293b0627c382cbf;hpb=a86eeac0ab678ea55307e1386c5f955f77d8ff73;p=syj.git diff --git a/application/controllers/IdxController.php b/application/controllers/IdxController.php index 3996fa0..c53b11b 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"; } @@ -79,6 +78,7 @@ class IdxController extends Zend_Controller_Action $this->view->translate('route by %s', (string)$path->creator->pseudo); } $this->view->headTitle($title); + $this->view->headMeta()->appendName('description', $this->view->translate('website to share routes')); $this->view->geomform = $geomform; $this->view->loginform = $loginform; $this->view->userform = $userform;