X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fcontrollers%2FListController.php;h=1cf030809025e75f4aced523656451e1548b1800;hb=0722c496ca63f30937427e3bf8fbdd5cfee2c83d;hp=317505e7d67b54dcc5b66e92e6d34184cb6b11f4;hpb=ec061a75fe57a25eb7ef0894f5e723397ba35472;p=syj.git diff --git a/application/controllers/ListController.php b/application/controllers/ListController.php index 317505e..1cf0308 100644 --- a/application/controllers/ListController.php +++ b/application/controllers/ListController.php @@ -1,25 +1,22 @@ _helper->SyjSession->needsLogin(); + $this->_helper->SyjUserManager->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")); } public function indexAction() { - $user = $this->_helper->SyjSession->user(); + $user = $this->_helper->SyjUserManager->current(); $pathMapper = new Syj_Model_PathMapper(); $list = $pathMapper->fetchByCreator($user); $paginator = Zend_Paginator::factory($list); @@ -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"),