<?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');
- $this->view->headLink()->appendStylesheet('css/pending.css');
+ $this->_helper->SyjMedias->addStyleSheets('pending');
}
public function indexAction() {
$title = $this->view->translate("password changed");
$this->_helper->ViewRenderer->setViewScriptPathSpec(':controller/password_validate.:suffix');
-
- // logout
- Zend_Session::start();
- Zend_Session::destroy();
+ $this->_helper->SyjUserManager->logout();
} else if (array_key_exists('pending_cancel', $formData)) {
if (!$pending->cancel()) {