summaryrefslogtreecommitdiffstats
path: root/application/modules/user/controllers/GroupController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/user/controllers/GroupController.php')
-rw-r--r--application/modules/user/controllers/GroupController.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/application/modules/user/controllers/GroupController.php b/application/modules/user/controllers/GroupController.php
index bf7e1b2..db87308 100644
--- a/application/modules/user/controllers/GroupController.php
+++ b/application/modules/user/controllers/GroupController.php
@@ -51,18 +51,18 @@ class User_GroupController 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);
}
$this->view->groupList = $this->groupList;
@@ -462,8 +462,8 @@ class User_GroupController extends Zend_Controller_Action {
if(isset($grouprequestID)) {
$groupRequest = $this->groupRequestMapper->find($grouprequestID);
if($groupRequest->getGroupID() != $this->userIDsNamespace['groupID']) {
- $pbsNotifier = new Pbs_Notifier();
- $this->view->notification = $pbsNotifier->notify('Not allowed to decline this grouprequest', 'forbidden');
+
+ $this->view->notification = Pbs_Notifier::notify('Not allowed to decline this grouprequest', 'forbidden');
return;
}
try {
@@ -488,8 +488,8 @@ class User_GroupController extends Zend_Controller_Action {
$membership->setSuspend(1);
if(isset($membership)) {
if($membership->getGroupID() != $this->userIDsNamespace['groupID']) {
- $pbsNotifier = new Pbs_Notifier();
- $this->view->notification = $pbsNotifier->notify('Not allowed to suspend this membership', 'forbidden');
+
+ $this->view->notification = Pbs_Notifier::notify('Not allowed to suspend this membership', 'forbidden');
return;
}
try {
@@ -515,8 +515,8 @@ class User_GroupController extends Zend_Controller_Action {
$membership->setSuspend(0);
if(isset($membership)) {
if($membership->getGroupID() != $this->userIDsNamespace['groupID']) {
- $pbsNotifier = new Pbs_Notifier();
- $this->view->notification = $pbsNotifier->notify('Not allowed to resume this membership', 'forbidden');
+
+ $this->view->notification = Pbs_Notifier::notify('Not allowed to resume this membership', 'forbidden');
return;
}
try {