]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/ListController.php
revert a86eeac0ab678ea55307e1386c5f955f77d8ff73
[syj.git] / application / controllers / ListController.php
index 317505e7d67b54dcc5b66e92e6d34184cb6b11f4..cda08aabe990236d020ffb0b9bce202d24ddcd8d 100644 (file)
@@ -8,13 +8,10 @@ class ListController extends Zend_Controller_Action
     public function init() {
         $this->_helper->SyjSession->needsLogin();
 
-        $this->view->headScript()->appendFile('js/OpenLayers.js');
-        $this->view->headScript()->appendFile('js/prototype.js');
-        $this->view->headScript()->appendFile('js/utils.js');
-        $this->view->headScript()->appendFile('js/list.js');
+        $this->_helper->SyjMedias->addScripts('list');
 
-        $this->view->headLink()->appendStylesheet('css/generic.css');
-        $this->view->headLink()->appendStylesheet('css/list.css');
+        $this->view->headLink()->appendStylesheet('css/generic.css', 'all');
+        $this->view->headLink()->appendStylesheet('css/list.css', 'all');
         $this->view->headTitle($this->view->translate("my routes"));
     }
 
@@ -35,7 +32,7 @@ class ListController extends Zend_Controller_Action
             'confirmDelete' => __("There is no undo. Delete this route definitively ?"),
             'notReachedError' => __("server could not be reached"),
             'requestError' => __("server did not understood request. That's probably caused by a bug in SYJ"),
-            'gonePathError' => __("route has been deleted from the server."),
+            'gonePathError' => __("route not referenced on the server. It has probably been deleted."),
             'serverError' => __("there was a server error"),
             'unknownError' => __("there was an unknown error"),
             'deleteSuccess' => __("route was successfully deleted"),