r103339 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r103338
|
r103339
|
r103340
>
Date:
16:53, 16 November 2011
Author:
platonides
Status:
ok (
Comments
)
Tags:
Comment:
On errors not using OutputPage, Content-Type header wasn't set,
although we output localised UTF-8 messaged.
Modified paths:
/trunk/phase3/includes/Exception.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/Exception.php
—
—
@@ -181,6 +181,7 @@
182
182
183
183
$wgOut->output();
184
184
} else {
185
+ header( "Content-Type: text/html; charset=utf-8" );
185
186
$hookResult = $this->runHooks( get_class( $this ) . "Raw" );
186
187
if ( $hookResult ) {
187
188
die( $hookResult );
Comments
#
Comment by
Platonides
(
talk
|
contribs
)
16:57, 16 November 2011
Note: DBConnectionError overrides useOutputPage() by always returning false
Status & tagging log
20:40, 16 November 2011
Aaron Schulz
(
talk
|
contribs
)
changed the
status
of r103339
[
removed:
new
added:
ok]