X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fcontrollers%2FNewpwdController.php;h=17b16cae391391837a8615bbdbae5eedccf5aab2;hb=7ab93faefae14af39fc5449a2c3311dd68d2c0f9;hp=85edbd9483ec04c5fa5143a52e4b9536b6f1a78b;hpb=70d6bb9dfa4c198607fbe75592f108bc8d69048b;p=syj.git diff --git a/application/controllers/NewpwdController.php b/application/controllers/NewpwdController.php index 85edbd9..17b16ca 100644 --- a/application/controllers/NewpwdController.php +++ b/application/controllers/NewpwdController.php @@ -1,5 +1,5 @@ _helper->SyjMedias->addScripts('newpwd'); - $this->view->headLink()->appendStylesheet('css/generic.css', 'all'); - $this->view->headLink()->appendStylesheet('css/form.css', 'all'); - $this->view->headLink()->appendStylesheet('css/newpwd.css', 'all'); + $this->_helper->SyjMedias->addStyleSheets('newpwd'); } public function indexAction() { @@ -24,7 +22,7 @@ class NewpwdController extends Zend_Controller_Action } if (empty($formData)) { - $loggeduser = $this->_helper->SyjSession->user(); + $loggeduser = $this->_helper->SyjUserManager->current(); if ($loggeduser) { $form->newpwd_email->setValue($loggeduser->email) ->setAttrib('readonly', 'true'); @@ -44,7 +42,7 @@ class NewpwdController extends Zend_Controller_Action $user = new Syj_Model_User(); if ($userMapper->findByEmail($formData['newpwd_email'], $user)) { // if no user exist with posted email, pretend everything went correct - $loggeduser = isset($loggeduser) ? $loggeduser: $this->_helper->SyjSession->user(); + $loggeduser = isset($loggeduser) ? $loggeduser: $this->_helper->SyjUserManager->current(); if ($loggeduser and ($loggeduser != $user)) { throw new Syj_Exception_Request(); }