From: Brion Vibber Date: Fri, 27 Jun 2003 07:30:33 +0000 (+0000) Subject: Use DTD as well as doctype to put browsers in standards compliance mode X-Git-Tag: 1.1.0~476 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=ec691bbb218eeff699fc2dc18a8c1767debcb631;p=lhc%2Fweb%2Fwiklou.git Use DTD as well as doctype to put browsers in standards compliance mode --- 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;