From ec691bbb218eeff699fc2dc18a8c1767debcb631 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 27 Jun 2003 07:30:33 +0000 Subject: [PATCH] Use DTD as well as doctype to put browsers in standards compliance mode --- includes/DefaultSettings.php | 1 + includes/OutputPage.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 926cf8498e..40c7834a8c 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -44,6 +44,7 @@ $wgInputEncoding = "ISO-8859-1"; $wgOutputEncoding = "ISO-8859-1"; $wgEditEncoding = ""; $wgDocType = "-//W3C//DTD HTML 4.01 Transitional//EN"; +$wgDTD = "http://www.w3.org/TR/html4/loose.dtd"; $wgAmericanDates = false; # Enable for English module to print dates # as eg 'May 12' instead of '12 May' $wgLocalInterwiki = "w"; diff --git a/includes/OutputPage.php b/includes/OutputPage.php index d09dcdda98..21019c3ad7 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1267,9 +1267,9 @@ class OutputPage { /* private */ function headElement() { - global $wgDocType, $wgUser, $wgLanguageCode, $wgOutputEncoding; + global $wgDocType, $wgDTD, $wgUser, $wgLanguageCode, $wgOutputEncoding; - $ret = "\n"; + $ret = "\n"; if ( "" == $this->mHTMLtitle ) { $this->mHTMLtitle = $this->mPagetitle; -- 2.20.1