]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
activate strict xhtml mode only on debug mode
authorChristian Weiske <cweiske@cweiske.de>
Sat, 9 Oct 2010 11:09:46 +0000 (13:09 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Sat, 9 Oct 2010 11:09:46 +0000 (13:09 +0200)
src/SemanticScuttle/header.php

index 3caeb35ebdfaaaa19299cc3fd0d1dd22d63cff8f..dc25581796432065c5fac848d8ec6b1bd6111db5 100644 (file)
@@ -120,10 +120,15 @@ $tplVars['userservice'] = $userservice;
 if (!defined('UNIT_TEST_MODE')) {
     //API files define that, so we need a way to support both of them
     if (!isset($httpContentType)) {
-        //$httpContentType = 'text/html';
-        //using that mime type makes all javascript nice in Chromium
-        // it also serves as test base if the pages really validate
-        $httpContentType = 'application/xhtml+xml';
+        if (DEBUG_MODE) {
+            //using that mime type makes all javascript nice in Chromium
+            // it also serves as test base if the pages really validate
+            $httpContentType = 'application/xhtml+xml';
+        } else {
+            //until we are sure that all pages validate, we
+            // keep the non-strict mode on for normal installations
+            $httpContentType = 'text/html';
+        }
     }
     if ($httpContentType !== false) {
         header('Content-Type: ' . $httpContentType . '; charset=utf-8');