]> git.mjollnir.org Git - moodle.git/commitdiff
Now XML strict headers are controlled by new setting
authorstronk7 <stronk7>
Fri, 21 Sep 2007 17:28:16 +0000 (17:28 +0000)
committerstronk7 <stronk7>
Fri, 21 Sep 2007 17:28:16 +0000 (17:28 +0000)
(xmlstrictheaders) separating it from debug->developer. MDL-11216

lib/weblib.php

index 75788f128d280dc4ea07737f3720c6606ffa0557..79671aa4a781f124646a777c6182d2134f331243 100644 (file)
@@ -2504,7 +2504,7 @@ function force_strict_header($output) {
     $strict = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
     $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= "<?xml version='1.0' encoding='utf-8'?>\n";