]> git.mjollnir.org Git - moodle.git/commitdiff
On second thoughts, while we are in testing phase, let's run with XHTML Strict all...
authormoodler <moodler>
Wed, 3 Jan 2007 02:03:22 +0000 (02:03 +0000)
committermoodler <moodler>
Wed, 3 Jan 2007 02:03:22 +0000 (02:03 +0000)
lib/weblib.php

index 592cf8db7fdb4cccc771ae44a36fbf7cadc1cfce..450e845e2d9d7d14d707a47aa9fe13a1b6e35c0e 100644 (file)
@@ -2264,10 +2264,7 @@ function force_strict_header($output) {
         }
     }
 
-    if (debugging()) {                                          // In any other debugging mode > NONE, strict is on
-        // Substitute document-type, s (PCRE_DOTALL)
-        $output = preg_replace('/(<!DOCTYPE.+?>)/s', $strict, $output);
-    }
+    $output = preg_replace('/(<!DOCTYPE.+?>)/s', $strict, $output);   // Always change the DOCTYPE to Strict 1.0
 
     return $output;
 }