summaryrefslogtreecommitdiff
path: root/library/WT/Controller
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2013-11-17 17:43:49 +0000
committerGreg Roach <fisharebest@gmail.com>2013-11-17 17:43:49 +0000
commitea8a5fd36fa5dbda4c7edfc66e0772a85b9cc629 (patch)
treec3e4223f5a50e9e65bd0d8def6b79af5f484417d /library/WT/Controller
parente62cd613a57115004402e0266cb83681e4044e0d (diff)
downloadwebtrees-ea8a5fd36fa5dbda4c7edfc66e0772a85b9cc629.tar.gz
webtrees-ea8a5fd36fa5dbda4c7edfc66e0772a85b9cc629.tar.bz2
webtrees-ea8a5fd36fa5dbda4c7edfc66e0772a85b9cc629.zip
Browser sniffing is bad. Move to themes, for those that need it
Diffstat (limited to 'library/WT/Controller')
-rw-r--r--library/WT/Controller/Page.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/library/WT/Controller/Page.php b/library/WT/Controller/Page.php
index d58074758d..8520a3f1e0 100644
--- a/library/WT/Controller/Page.php
+++ b/library/WT/Controller/Page.php
@@ -126,8 +126,7 @@ class WT_Controller_Page extends WT_Controller_Base {
// Print the page header, using the theme
public function pageHeader() {
// Import global variables into the local scope, for the theme's header.php
- global $BROWSERTYPE, $SEARCH_SPIDER, $TEXT_DIRECTION, $REQUIRE_AUTHENTICATION;
- global $headerfile, $view;
+ global $SEARCH_SPIDER, $TEXT_DIRECTION, $REQUIRE_AUTHENTICATION, $headerfile, $view;
// The title often includes the names of records, which may have markup
// that cannot be used in the page title.
@@ -159,7 +158,6 @@ class WT_Controller_Page extends WT_Controller_Base {
var WT_GED_ID = "' . WT_Filter::escapeJs(WT_GED_ID) . '";
var WT_USER_ID = "' . WT_Filter::escapeJs(WT_USER_ID) . '";
var textDirection = "' . WT_Filter::escapeJs($TEXT_DIRECTION) . '";
- var browserType = "' . WT_Filter::escapeJs($BROWSERTYPE) . '";
var WT_SCRIPT_NAME = "' . WT_Filter::escapeJs(WT_SCRIPT_NAME) . '";
var WT_LOCALE = "' . WT_Filter::escapeJs(WT_LOCALE) . '";
var WT_CSRF_TOKEN = "' . WT_Filter::escapeJs(WT_Filter::getCsrfToken()) . '";
@@ -173,11 +171,6 @@ class WT_Controller_Page extends WT_Controller_Base {
}
');
- // Tell IE to use standards mode instead of compatability mode.
- if ($BROWSERTYPE=='msie') {
- header("X-UA-Compatible: IE=Edge");
- }
-
header('Content-Type: text/html; charset=UTF-8');
require WT_ROOT.$headerfile;