Add a doctype to error pages (based on www.apache.org error message)
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 2 Jan 2007 20:05:13 +0000 (20:05 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 2 Jan 2007 20:05:13 +0000 (20:05 +0000)
includes/GlobalFunctions.php

index 7f5f3a8..1759545 100644 (file)
@@ -1063,7 +1063,8 @@ function wfHttpError( $code, $label, $desc ) {
        $wgOut->sendCacheControl();
 
        header( 'Content-type: text/html' );
-       print "<html><head><title>" .
+       print "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">".
+               "<html><head><title>" .
                htmlspecialchars( $label ) .
                "</title></head><body><h1>" .
                htmlspecialchars( $label ) .