]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/PendingController.php
some style for forms
[syj.git] / application / controllers / PendingController.php
index 025f6c97a4048af750eb1c5888311c9888209fff..7326bdbdb425a4d8ca4aa0bb8add3b45a4139fca 100644 (file)
@@ -6,8 +6,9 @@ class PendingController extends Zend_Controller_Action
 {
 
     public function init() {
-        $this->view->headLink()->appendStylesheet('css/generic.css');
-        $this->view->headLink()->appendStylesheet('css/pending.css');
+        $this->view->headLink()->appendStylesheet('css/generic.css', 'all');
+        $this->view->headLink()->appendStylesheet('css/form.css', 'all');
+        $this->view->headLink()->appendStylesheet('css/pending.css', 'all');
     }
 
     public function indexAction() {
@@ -52,10 +53,7 @@ class PendingController extends Zend_Controller_Action
 
                     $title = $this->view->translate("password changed");
                     $this->_helper->ViewRenderer->setViewScriptPathSpec(':controller/password_validate.:suffix');
-
-                    // logout
-                    Zend_Session::start();
-                    Zend_Session::destroy();
+                    $this->_helper->SyjSession->logout();
 
                 } else if (array_key_exists('pending_cancel', $formData)) {
                     if (!$pending->cancel()) {