]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/IdxController.php
meta description tag
[syj.git] / application / controllers / IdxController.php
index 3996fa04e8e6c5c4adfc7de65293b0627c382cbf..c53b11b2146320b626aec2bc67e4e7314f1970f0 100644 (file)
@@ -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 <strong>%s</strong>', (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;