Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/processors/main_processor.php
Show First 20 Lines • Show All 155 Lines • ▼ Show 20 Line(s) | |||||
/** | /** | ||||
* Performs redirect to provided template/url | * Performs redirect to provided template/url | ||||
* | * | ||||
* @param Array $params | * @param Array $params | ||||
* @return string | * @return string | ||||
*/ | */ | ||||
function Redirect($params) | function Redirect($params) | ||||
{ | { | ||||
$this->Application->Redirect('external:' . $this->Link($params)); | // By default link to current template. | ||||
$template = $this->SelectParam($params, 't,template'); | |||||
$prefix = array_key_exists('prefix', $params) ? $params['prefix'] : ''; | |||||
unset($params['t'], $params['template'], $params['prefix']); | |||||
// Pass "m" prefix, instead of "all", that is by default on Front-End. | |||||
if ( !array_key_exists('pass', $params) ) { | |||||
$params['pass'] = 'm'; | |||||
} | |||||
$this->Application->Redirect($template, $params, $prefix); | |||||
return ''; | return ''; | ||||
} | } | ||||
/*function Env($params) | /*function Env($params) | ||||
{ | { | ||||
$t = $params['template']; | $t = $params['template']; | ||||
unset($params['template']); | unset($params['template']); | ||||
▲ Show 20 Lines • Show All 1118 Lines • Show Last 20 Lines |