Index: branches/RC/core/kernel/processors/main_processor.php =================================================================== diff -u -r9274 -r9277 --- branches/RC/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 9274) +++ branches/RC/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 9277) @@ -1011,7 +1011,6 @@ function XMLTemplate($params) { safeDefine('DBG_SKIP_REPORTING', 1); - $lang =& $this->Application->recallObject('lang.current'); if (isset($params['cache']) && $params['cache']) { $nextyear = intval(date('Y') + 1); @@ -1038,11 +1037,7 @@ } } - header('Content-type: text/xml; charset='.$lang->GetDBField('Charset')); - - if (isset($params['xml_version']) && $params['xml_version']) { - return 'GetDBField('Charset').'"?>'; - } + return $this->Application->XMLHeader(getArrayValue($params, 'xml_version')); } function Header($params)