Index: trunk/phase3/includes/Exception.php |
— | — | @@ -182,12 +182,25 @@ |
183 | 183 | |
184 | 184 | $wgOut->output(); |
185 | 185 | } else { |
| 186 | + header( $_SERVER['SERVER_PROTOCOL'] . ' 500 MediaWiki Error', true, 500 ); |
| 187 | + header( 'Content-type: text/html; charset=UTF-8' ); |
| 188 | + header( 'Cache-control: none' ); |
| 189 | + header( 'Pragma: nocache' ); |
| 190 | + |
186 | 191 | $hookResult = $this->runHooks( get_class( $this ) . "Raw" ); |
187 | 192 | if ( $hookResult ) { |
188 | 193 | die( $hookResult ); |
189 | 194 | } |
190 | 195 | |
| 196 | + echo "<html> |
| 197 | +<head> |
| 198 | +<meta http-equiv='Content-Type' content='text/html; charset=utf-8' /> |
| 199 | +<title>" . $this->getPageTitle() . "</title> |
| 200 | +</head> |
| 201 | +<body> |
| 202 | +"; |
191 | 203 | echo $this->getHTML(); |
| 204 | + echo "\n</body></html>"; |
192 | 205 | die(1); |
193 | 206 | } |
194 | 207 | } |