From 8cf6cb9018b4cf4d2b6f8bd96fbdd58e8f88edad Mon Sep 17 00:00:00 2001 From: stronk7 Date: Fri, 21 Sep 2007 17:28:16 +0000 Subject: [PATCH] Now XML strict headers are controlled by new setting (xmlstrictheaders) separating it from debug->developer. MDL-11216 --- lib/weblib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index 75788f128d..79671aa4a7 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2504,7 +2504,7 @@ function force_strict_header($output) { $strict = ''; $xsl = '/lib/xhtml.xsl'; - if (!headers_sent() && debugging(NULL, DEBUG_DEVELOPER)) { // In developer debugging, the browser will barf + if (!headers_sent() && !empty($CFG->xmlstrictheaders)) { // With xml strict headers, the browser will barf $ctype = 'Content-Type: '; $prolog= "\n"; -- 2.39.5