On errors not using OutputPage, Content-Type header wasn't set,
authorPlatonides <platonides@users.mediawiki.org>
Wed, 16 Nov 2011 16:53:12 +0000 (16:53 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 16 Nov 2011 16:53:12 +0000 (16:53 +0000)
although we output localised UTF-8 messaged.

includes/Exception.php

index 8c4e0a7..08a63ee 100644 (file)
@@ -181,6 +181,7 @@ class MWException extends Exception {
 
                        $wgOut->output();
                } else {
+                       header( "Content-Type: text/html; charset=utf-8" );
                        $hookResult = $this->runHooks( get_class( $this ) . "Raw" );
                        if ( $hookResult ) {
                                die( $hookResult );