diff options
| author | Sebastian Schmelzer | 2012-01-11 19:22:47 +0100 |
|---|---|---|
| committer | Sebastian Schmelzer | 2012-01-11 19:22:47 +0100 |
| commit | 4123c100e127baa70da62990daa88bde3071fe5e (patch) | |
| tree | b1ee255528fd75a83c97c3988ff9c04dd95e6a62 /application/modules/user/controllers/AuthController.php | |
| parent | add favico (diff) | |
| download | pbs2-4123c100e127baa70da62990daa88bde3071fe5e.tar.gz pbs2-4123c100e127baa70da62990daa88bde3071fe5e.tar.xz pbs2-4123c100e127baa70da62990daa88bde3071fe5e.zip | |
make notifier call static
Diffstat (limited to 'application/modules/user/controllers/AuthController.php')
| -rw-r--r-- | application/modules/user/controllers/AuthController.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/application/modules/user/controllers/AuthController.php b/application/modules/user/controllers/AuthController.php index 7ef56aa..8adea4c 100644 --- a/application/modules/user/controllers/AuthController.php +++ b/application/modules/user/controllers/AuthController.php @@ -53,16 +53,16 @@ class User_AuthController extends Zend_Controller_Action { $date = new DateTime(); $person->setLogindate($date->getTimestamp()); if($person->getSuspend()) { - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification = $pbsNotifier->notify('Your Account is suspended', 'error'); + + $this->view->notification = Pbs_Notifier::notify('Your Account is suspended', 'error'); } else { $this->personmapper->save($person); $this->_helper->redirector('selectmembership', 'person'); return; } } else { - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification = $pbsNotifier->notify('Wrong Email or Password', 'error'); + + $this->view->notification = Pbs_Notifier::notify('Wrong Email or Password', 'error'); } } } @@ -82,8 +82,8 @@ class User_AuthController extends Zend_Controller_Action { public function registerAction() { if (Zend_Auth::getInstance()->hasIdentity()) { - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification = $pbsNotifier->notify('Already logged in.', 'error'); + + $this->view->notification = Pbs_Notifier::notify('Already logged in.', 'error'); } else { if (!isset($_POST["register"])) { $registerForm = new user_Form_Register(); @@ -106,8 +106,8 @@ class User_AuthController extends Zend_Controller_Action { try { $this->personmapper->save($person); } catch(Zend_Exception $e) { - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification = $pbsNotifier->notify('Email already registered', 'error'); + + $this->view->notification = Pbs_Notifier::notify('Email already registered', 'error'); $this->view->registerForm = $registerForm; return; } |
