Index: branches/5.3.x/core/kernel/processors/main_processor.php =================================================================== diff -u -N -r16156 -r16395 --- branches/5.3.x/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 16156) +++ branches/5.3.x/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 16395) @@ -1,6 +1,6 @@ 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 ''; } @@ -1117,7 +1128,7 @@ $esender = $this->Application->recallObject($pseudo); /* @var $esender kEmailSendingHelper */ - if ( file_exists($path) ) { + if ( file_exists($path) && is_file($path) ) { $esender->AddAttachment($path); } } @@ -1162,6 +1173,10 @@ $current_params = $this->Application->Parser->Params; foreach ($current_params as $param_name => $param_value) { + if ( is_object($param_value) && !method_exists($param_value, '__toString') ) { + $param_value = 'ClassName: ' . get_class($param_value); + } + $current_params[$param_name] = $param_name . ' = "' . $param_value . '"'; }