summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Tom Willemse2024-04-21 00:30:29 -0700
committerGravatar Tom Willemse2024-04-21 00:30:29 -0700
commit384eac16a7a323c6a747b0a5f4d0d72202611ae7 (patch)
tree074d62b0557d4b0b512b56ab84b381a04fdb87d5 /src
parent5fb1260ba395b687123ff4980a8915ddc148fed2 (diff)
parentaf40c6207ab74d511d80bcd5767fc60a256f0b98 (diff)
downloadscuttle-384eac16a7a323c6a747b0a5f4d0d72202611ae7.tar.gz
scuttle-384eac16a7a323c6a747b0a5f4d0d72202611ae7.zip
Merge branch 'debug-fixes' into oni
Diffstat (limited to 'src')
-rw-r--r--src/SemanticScuttle/header.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/SemanticScuttle/header.php b/src/SemanticScuttle/header.php
index 562ae43..bbe35bc 100644
--- a/src/SemanticScuttle/header.php
+++ b/src/SemanticScuttle/header.php
@@ -158,15 +158,7 @@ $tplVars['userservice'] = $userservice;
if (!defined('UNIT_TEST_MODE') || defined('HTTP_UNIT_TEST_MODE')) {
//API files define that, so we need a way to support both of them
if (!isset($httpContentType)) {
- 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';
- }
+ $httpContentType = 'text/html';
}
if ($httpContentType !== false) {
header('Content-Type: ' . $httpContentType . '; charset=utf-8');