openrat-cms

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

commit da6b77982ee3b669446a65fc031c34ab89a3dccc
parent 6bd1e81a0c1609d8b3b3f660e8c68470d89607c8
Author: dankert <devnull@localhost>
Date:   Thu, 24 Sep 2009 00:46:23 +0200

Korrektur: Ermittlung des Edit-Modus.

Diffstat:
actionClasses/Action.class.php | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/actionClasses/Action.class.php b/actionClasses/Action.class.php @@ -72,7 +72,11 @@ class Action $this->templateVars['errors' ] = array(); $this->templateVars['notices'] = array(); - $this->templateVars['mode' ] = $this->getRequestVar('mode'); + + if ( !$this->isEditable() || isset($_COOKIE['or_always_edit']) ) + $this->templateVars['mode'] = 'edit'; + else + $this->templateVars['mode'] = $this->getRequestVar('mode'); header('Content-Language: '.$conf['language']['language_code']); }