Index: trunk/core/kernel/utility/http_query.php =================================================================== diff -u -r3200 -r3207 --- trunk/core/kernel/utility/http_query.php (.../http_query.php) (revision 3200) +++ trunk/core/kernel/utility/http_query.php (.../http_query.php) (revision 3207) @@ -276,6 +276,14 @@ } } + function finalizeParsing($passed, $module_params = Array() ) + { + if( is_array($passed) ) $passed = implode(',', $passed); + $this->Set('passed', $passed); + $env = $this->Application->BuildEnv( $this->Get('t'), $module_params, $passed, false, false ); + $this->Set(ENV_VAR_NAME, $env); + $_REQUEST['env'] = $_GET['env'] = $env; // for capability with old in-portal code + } function processRewriteURL() { @@ -301,6 +309,7 @@ $this->Application->VerifyThemeId(); // $this->Get('m_lang') ); $this->Set('t', $this->getDefaultTemplate('') ); + $this->finalizeParsing('m'); return false; } @@ -422,10 +431,7 @@ $module_params = Array($module_prefix.'_id' => $item_id ? $item_id : '0' ); } - $this->Set('passed', implode(',', $passed) ); - $env = $this->Application->BuildEnv( $this->Get('t'), $module_params, implode(',', $passed), false, false ); - $this->Set(ENV_VAR_NAME, $env); - $_REQUEST['env'] = $_GET['env'] = $env; // for capability with old in-portal code + $this->finalizeParsing($passed, $module_params); } function getDefaultTemplate($t)