]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/PendingController.php
cache js, css and png files
[syj.git] / application / controllers / PendingController.php
index 7326bdbdb425a4d8ca4aa0bb8add3b45a4139fca..ff28a1f94dad7b48db031faa703092ead5fa9b3c 100644 (file)
@@ -1,14 +1,12 @@
 <?php
-/*  This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
+/*  This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
     and is published under the AGPL license. */
 
 class PendingController extends Zend_Controller_Action
 {
 
     public function init() {
-        $this->view->headLink()->appendStylesheet('css/generic.css', 'all');
-        $this->view->headLink()->appendStylesheet('css/form.css', 'all');
-        $this->view->headLink()->appendStylesheet('css/pending.css', 'all');
+        $this->_helper->SyjMedias->addStyleSheets('pending');
     }
 
     public function indexAction() {
@@ -53,7 +51,7 @@ class PendingController extends Zend_Controller_Action
 
                     $title = $this->view->translate("password changed");
                     $this->_helper->ViewRenderer->setViewScriptPathSpec(':controller/password_validate.:suffix');
-                    $this->_helper->SyjSession->logout();
+                    $this->_helper->SyjUserManager->logout();
 
                 } else if (array_key_exists('pending_cancel', $formData)) {
                     if (!$pending->cancel()) {