From 4123c100e127baa70da62990daa88bde3071fe5e Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Wed, 11 Jan 2012 19:22:47 +0100 Subject: make notifier call static --- .../modules/user/controllers/BootisoController.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'application/modules/user/controllers/BootisoController.php') diff --git a/application/modules/user/controllers/BootisoController.php b/application/modules/user/controllers/BootisoController.php index da68b29..fd6419a 100644 --- a/application/modules/user/controllers/BootisoController.php +++ b/application/modules/user/controllers/BootisoController.php @@ -40,23 +40,23 @@ class user_BootisoController extends Zend_Controller_Action { public function indexAction() { $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('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('downloadresult'); if($result != "") { - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification = $pbsNotifier->notify('download', $result); + + $this->view->notification = Pbs_Notifier::notify('download', $result); } -- cgit v1.2.3-55-g7522