Avoid "?>", messes up some syntax highlighters
authorAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 16 Mar 2009 00:34:46 +0000 (00:34 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 16 Mar 2009 00:34:46 +0000 (00:34 +0000)
includes/OutputPage.php

index f6a5601..2474495 100644 (file)
@@ -1479,7 +1479,7 @@ class OutputPage {
                $ret = '';
 
                if( $wgMimeType == 'text/xml' || $wgMimeType == 'application/xhtml+xml' || $wgMimeType == 'application/xml' ) {
-                       $ret .= "<?xml version=\"1.0\" encoding=\"$wgOutputEncoding\" ?>\n";
+                       $ret .= "<?xml version=\"1.0\" encoding=\"$wgOutputEncoding\" ?" . ">\n";
                }
 
                $ret .= "<!DOCTYPE html PUBLIC \"$wgDocType\"\n        \"$wgDTD\">\n";