From: Sarven Capadisli Date: Wed, 30 Sep 2009 10:53:04 +0000 (+0000) Subject: Better check to see if the XML prolog should be outputted for XML X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1e7df7fbab8a03468a1697240e92f67c82dadced;p=quix0rs-gnu-social.git Better check to see if the XML prolog should be outputted for XML documents i.e., if best mimetype is */*xml, then use the XML prolog. --- diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php index 99f956545b..64be745beb 100644 --- a/lib/htmloutputter.php +++ b/lib/htmloutputter.php @@ -109,8 +109,8 @@ class HTMLOutputter extends XMLOutputter header('Content-Type: '.$type.'; charset=UTF-8'); $this->extraHeaders(); - if( ! substr($type,0,strlen('text/html'))=='text/html' ){ - // Browsers don't like it when xw->startDocument('1.0', 'UTF-8'); } $this->xw->writeDTD('html',