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/fbgui/controllers/IndexController.php | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'application/modules/fbgui/controllers/IndexController.php') diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php index fb4d4dc..5f09ee0 100644 --- a/application/modules/fbgui/controllers/IndexController.php +++ b/application/modules/fbgui/controllers/IndexController.php @@ -25,8 +25,8 @@ class Fbgui_IndexController extends Zend_Controller_Action { public function errorAction() { $result = $this->_request->getParam('serialresult'); if($result != "") { - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification = $pbsNotifier->notify('serial', $result); + + $this->view->notification = Pbs_Notifier::notify('serial', $result); } } @@ -41,8 +41,8 @@ class Fbgui_IndexController extends Zend_Controller_Action { $result = $this->_request->getParam('notify'); if($result == 'nomember') { - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification[] = $pbsNotifier->notify('You have no membership, therefore you have no own BootMenu', 'info'); + + $this->view->notification[] = Pbs_Notifier::notify('You have no membership, therefore you have no own BootMenu', 'info'); } $d = new Pbs_Debug(); @@ -128,14 +128,14 @@ class Fbgui_IndexController extends Zend_Controller_Action { if(Zend_Auth::getInstance()->hasIdentity()) { if($bm->MembershipID != '' && $bm->MembershipID == $this->membership->getID()) { } else { - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification[] = $pbsNotifier->notify("This is not your Bootmenu. There is currently a BootMenu with a higher priority active.", 'info'); + + $this->view->notification[] = Pbs_Notifier::notify("This is not your Bootmenu. There is currently a BootMenu with a higher priority active.", 'info'); } } if(count($res) == 0) { - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification[] = $pbsNotifier->notify("There are no entries in the bootmenu.", 'info'); + + $this->view->notification[] = Pbs_Notifier::notify("There are no entries in the bootmenu.", 'info'); $this->view->nobootmenu = true; unset($this->view->entries); } @@ -150,11 +150,11 @@ class Fbgui_IndexController extends Zend_Controller_Action { // 'there is no bootmenu for you'); if (!Zend_Auth::getInstance()->hasIdentity()) { $this->view->loginmenu = true; - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification[] = $pbsNotifier->notify("There is no default BootMenu, please Login to get your BootMenu.", 'info'); + + $this->view->notification[] = Pbs_Notifier::notify("There is no default BootMenu, please Login to get your BootMenu.", 'info'); } else { - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification[] = $pbsNotifier->notify("You have no BootMenu.", 'info'); + + $this->view->notification[] = Pbs_Notifier::notify("You have no BootMenu.", 'info'); } $this->view->nobootmenu = true; } -- cgit v1.2.3-55-g7522