From: Platonides Date: Wed, 16 Nov 2011 16:53:12 +0000 (+0000) Subject: On errors not using OutputPage, Content-Type header wasn't set, X-Git-Tag: 1.31.0-rc.0~26469 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=55b35bdd20f02ba88a791d5cf53f81e6feb695b9;p=lhc%2Fweb%2Fwiklou.git On errors not using OutputPage, Content-Type header wasn't set, although we output localised UTF-8 messaged. --- diff --git a/includes/Exception.php b/includes/Exception.php index 8c4e0a754f..08a63ee6bf 100644 --- a/includes/Exception.php +++ b/includes/Exception.php @@ -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 );