summaryrefslogtreecommitdiffstats
path: root/application/modules/fbgui/controllers/IndexController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/fbgui/controllers/IndexController.php')
-rw-r--r--application/modules/fbgui/controllers/IndexController.php24
1 files changed, 12 insertions, 12 deletions
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;
}