diff options
Diffstat (limited to 'application/modules/user/controllers/PoolController.php')
-rw-r--r-- | application/modules/user/controllers/PoolController.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/application/modules/user/controllers/PoolController.php b/application/modules/user/controllers/PoolController.php index 62a2819..43df180 100644 --- a/application/modules/user/controllers/PoolController.php +++ b/application/modules/user/controllers/PoolController.php @@ -18,8 +18,8 @@ class User_PoolController extends Zend_Controller_Action { if (Zend_Auth::getInstance()->hasIdentity()) { $userIDsNamespace = Zend_Session::namespaceGet('userIDs'); if($userIDsNamespace['membershipID'] == '') { - $pbsNotifier = new Pbs_Notifier(); - echo $pbsNotifier->notify('No membershipID set', 'forbidden'); + + echo Pbs_Notifier::notify('No membershipID set', 'forbidden'); } $membershipMapper = new Application_Model_MembershipMapper(); @@ -38,28 +38,28 @@ class User_PoolController extends Zend_Controller_Action { $result = $this->_request->getParam('deleteresult'); if($result != "") { - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification = $pbsNotifier->notify('delete', $result); + + $this->view->notification = Pbs_Notifier::notify('delete', $result); } $result = $this->_request->getParam('modifyresult'); if($result != "") { - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification = $pbsNotifier->notify('modify', $result); + + $this->view->notification = Pbs_Notifier::notify('modify', $result); } $result = $this->_request->getParam('addresult'); if($result != "") { - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification = $pbsNotifier->notify('create', $result); + + $this->view->notification = Pbs_Notifier::notify('create', $result); } $result = $this->_request->getParam('linkresult'); if($result != "") { - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification = $pbsNotifier->notify('link', $result); + + $this->view->notification = Pbs_Notifier::notify('link', $result); } $result = $this->_request->getParam('unlinkresult'); if($result != "") { - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification = $pbsNotifier->notify('unlink', $result); + + $this->view->notification = Pbs_Notifier::notify('unlink', $result); } // get all pools from this group |