|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00024 require_once 'Zend/XmlRpc/Response.php'; 00025 00036 class Zend_XmlRpc_Response_Http extends Zend_XmlRpc_Response 00037 { 00043 public function __toString() 00044 { 00045 if (!headers_sent()) { 00046 header('Content-Type: text/xml; charset=' . strtolower($this->getEncoding())); 00047 } 00048 00049 return parent::__toString(); 00050 } 00051 }