From: stronk7 Date: Fri, 21 Sep 2007 17:28:16 +0000 (+0000) Subject: Now XML strict headers are controlled by new setting X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8cf6cb9018b4cf4d2b6f8bd96fbdd58e8f88edad;p=moodle.git Now XML strict headers are controlled by new setting (xmlstrictheaders) separating it from debug->developer. MDL-11216 --- 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";