public function output() { $content = jXmlRpc::encodeResponse($this->response, $GLOBALS['gJConfig']->charset); $this->_httpHeaders["Content-Type"] = "text/xml;charset=" . $GLOBALS['gJConfig']->charset; $this->_httpHeaders["Content-length"] = strlen($content); $this->sendHttpHeaders(); echo $content; return true; }
public function output() { if ($this->_outputOnlyHeaders) { $this->sendHttpHeaders(); return true; } $content = jXmlRpc::encodeResponse($this->response, jApp::config()->charset); $this->_httpHeaders["Content-Type"] = "text/xml;charset=" . jApp::config()->charset; $this->_httpHeaders["Content-length"] = strlen($content); $this->sendHttpHeaders(); echo $content; return true; }