openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit d5b9793d0bc4620cc0fc27a92c22c4e0905a213a
parent 085571937c3a4ecca1edb52700169bbc89608ffb
Author: Jan Dankert <devnull@localhost>
Date:   Mon,  7 Nov 2011 20:29:45 +0100

Fix: Aufruf von \"updateView()\" ausgebaut.

Diffstat:
action/Action.class.php | 12++++--------
action/LoginAction.class.php | 5++---
2 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/action/Action.class.php b/action/Action.class.php @@ -783,17 +783,13 @@ class Action /** + * Setzt eine neue Perspektive für die Sitzung. * - * @param $viewName - * @param $viewAction - * @param $viewSubaction + * @param String Name der Perspektive */ - protected function updateView( $viewName, $viewAction,$viewSubaction ) + protected function setPerspective( $name ) { - global $views; - if ( array_key_exists($viewName,$views) ) - $views[$viewName] = array('action'=>$viewAction,'subaction'=>$viewSubaction); - + Session::set('perspective',$name); $this->refresh(); } } diff --git a/action/LoginAction.class.php b/action/LoginAction.class.php @@ -743,11 +743,10 @@ class LoginAction extends Action $model->load(); Session::setProjectModel( $model ); } + + $this->setPerspective('start'); } - //$this->refresh(); // Benutzer ist angemeldet: Andere Views könnte das interessieren. - $this->updateView('content','start','projectmenu'); - Session::set('perspective','start'); }