diff --git a/inc/class.page.php b/inc/class.page.php --- a/inc/class.page.php +++ b/inc/class.page.php @@ -119,12 +119,7 @@ class page /* Compliant browsers which care, such as gecko, explicitly request xhtml: */ if(empty($_SERVER['HTTP_ACCEPT']) /* then the browser doesn't care :-) */ || strpos($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml') !== FALSE) - { $this->xhtml = TRUE; - header('Content-Type: application/xhtml+xml; charset=utf-8'); - } - else - header('Content-Type: text/html; charset=utf-8'); if (count($ga_trackers)) { @@ -207,10 +202,12 @@ class page */ public function head() { - if ($this->xhtml) { + header('Content-Type: application/xhtml+xml; charset=utf-8'); echo '' . PHP_EOL; } + else + header('Content-Type: text/html; charset=utf-8'); echo 'doctype . '>'. PHP_EOL . 'htmlargs . '>'. PHP_EOL .