Index: branches/RC/core/kernel/application.php =================================================================== diff -u -r8953 -r9277 --- branches/RC/core/kernel/application.php (.../application.php) (revision 8953) +++ branches/RC/core/kernel/application.php (.../application.php) (revision 9277) @@ -2537,6 +2537,21 @@ return $count_helper->resetCounters($tables); } + + /** + * Sends XML header + optionally displays xml heading + * + * @param string $xml_version + * @return string + * @author Alex + */ + function XMLHeader($xml_version = false) + { + $lang =& $this->recallObject('lang.current'); + header('Content-type: text/xml; charset='.$lang->GetDBField('Charset')); + + return $xml_version ? 'GetDBField('Charset').'"?>' : ''; + } } ?> \ No newline at end of file