equal
deleted
inserted
replaced
464 $this->output($error->getXml()); |
464 $this->output($error->getXml()); |
465 } |
465 } |
466 |
466 |
467 function output($xml) |
467 function output($xml) |
468 { |
468 { |
469 $xml = '<?xml version="1.0"?>'."\n".$xml; |
469 $charset = function_exists('get_option') ? get_option('blog_charset') : ''; |
|
470 if ($charset) |
|
471 $xml = '<?xml version="1.0" encoding="'.$charset.'"?>'."\n".$xml; |
|
472 else |
|
473 $xml = '<?xml version="1.0"?>'."\n".$xml; |
470 $length = strlen($xml); |
474 $length = strlen($xml); |
471 header('Connection: close'); |
475 header('Connection: close'); |
472 header('Content-Length: '.$length); |
476 header('Content-Length: '.$length); |
473 header('Content-Type: text/xml'); |
477 if ($charset) |
|
478 header('Content-Type: text/xml; charset='.$charset); |
|
479 else |
|
480 header('Content-Type: text/xml'); |
474 header('Date: '.date('r')); |
481 header('Date: '.date('r')); |
475 echo $xml; |
482 echo $xml; |
476 exit; |
483 exit; |
477 } |
484 } |
478 |
485 |