summaryrefslogtreecommitdiffstats
path: root/application/modules/user/controllers/ClientController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/user/controllers/ClientController.php')
-rw-r--r--application/modules/user/controllers/ClientController.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/application/modules/user/controllers/ClientController.php b/application/modules/user/controllers/ClientController.php
index bf73f19..a97aefe 100644
--- a/application/modules/user/controllers/ClientController.php
+++ b/application/modules/user/controllers/ClientController.php
@@ -18,8 +18,8 @@ class User_ClientController 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');
}
/* Initialize action controller here */
$membershipMapper = new Application_Model_MembershipMapper();
@@ -39,18 +39,18 @@ class User_ClientController extends Zend_Controller_Action {
// Get the Clients which booted with a bootiso of this group
$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);
}
$clientMapper = new Application_Model_ClientMapper();