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/SessionController.php | 23 +++++++++++----------- 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'application/modules/user/controllers/SessionController.php') diff --git a/application/modules/user/controllers/SessionController.php b/application/modules/user/controllers/SessionController.php index f90845a..cd0b27f 100644 --- a/application/modules/user/controllers/SessionController.php +++ b/application/modules/user/controllers/SessionController.php @@ -1,23 +1,23 @@ 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'); } $membershipMapper = new Application_Model_MembershipMapper(); @@ -107,9 +107,8 @@ class User_SessionController extends Zend_Controller_Action { public function searchAction() { $this->_redirect('/user/session/index/search/'.($_GET['search'])); } - - } + function sortFunc($func_a, $func_b) { if($func_a->getID() == $func_b->getID()) { return 0; } return ($func_a->getID() < $func_b->getID()) ? 1 : -1; -- cgit v1.2.3-55-g7522