From 4aaeeee3b0b9e64421af247a83e70782b1e6d372 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 2 Jan 2007 20:05:13 +0000 Subject: [PATCH] Add a doctype to error pages (based on www.apache.org error message) --- includes/GlobalFunctions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) . -- 2.20.1