openrat-cms

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

commit 0a355179e1f7414ff86dbc5907915f7e5782717d
parent e4e98bab22cd62766cc4c68709d3512149faa4c6
Author: dankert <devnull@localhost>
Date:   Thu, 27 Jan 2011 01:20:20 +0100

Temporärer Fix: Aufruf  der Baumknoten (Öffnen, Schließen)

Diffstat:
action/TreeAction.ini.php | 3+++
do.php | 9+++++++++
2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/action/TreeAction.ini.php b/action/TreeAction.ini.php @@ -10,12 +10,15 @@ goto=show clear=content [openall] +call=true goto=show [open] +call=true goto=show [close] +call=true goto=show ;[refresh] diff --git a/do.php b/do.php @@ -269,6 +269,7 @@ $sConf = @$conf['action'][$actionClassName][$subaction]; if ( ( isset($sConf['write']) && ( $_SERVER['REQUEST_METHOD'] == 'POST' || $sConf['write']=='get') ) + || @$sConf['call'] || isset($conf['action'][$actionClassName][$subaction]['direct'] ) ) { if ($_SERVER['REQUEST_METHOD'] == 'POST'|| @$sConf['write']=='get') @@ -367,6 +368,8 @@ if ( ( isset($sConf['write']) exit; } } + + $actionTemplateVars = $do->templateVars; } @@ -428,6 +431,12 @@ foreach( $views as $view=>$viewConfig ) $do->init(); + if ( isset($actionTemplateVars)) + { + //unset( $actionTemplateVars['mode'] ); + $do->templateVars = $actionTemplateVars; + } + $subactionConfig = $do->actionConfig[$subaction]; //Logger::trace("controller is calling subaction '$subaction'");