From: Antoine Musso Date: Tue, 2 Jan 2007 20:05:13 +0000 (+0000) Subject: Add a doctype to error pages (based on www.apache.org error message) X-Git-Tag: 1.31.0-rc.0~54693 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=4aaeeee3b0b9e64421af247a83e70782b1e6d372;p=lhc%2Fweb%2Fwiklou.git Add a doctype to error pages (based on apache.org error message) --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 7f5f3a82bd..175954512a 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1063,7 +1063,8 @@ function wfHttpError( $code, $label, $desc ) { $wgOut->sendCacheControl(); header( 'Content-type: text/html' ); - print "" . + print "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">". + "<html><head><title>" . htmlspecialchars( $label ) . "

" . htmlspecialchars( $label ) .