includes/template.php
changeset 526 b2fb50d572c7
parent 511 f88c8c79d784
child 533 698a8f04957c
--- a/includes/template.php	Tue Apr 08 20:32:30 2008 -0400
+++ b/includes/template.php	Wed Apr 09 19:27:02 2008 -0400
@@ -1017,6 +1017,12 @@
       $this->load_theme($session->theme, $session->style);
     }
     
+    // I feel awful doing this.
+    if ( preg_match('/^W3C_Validator/', @$_SERVER['HTTP_USER_AGENT']) )
+    {
+      header('Content-type: application/xhtml+xml');
+    }
+    
     $headers_sent = true;
     if(!defined('ENANO_HEADERS_SENT'))
       define('ENANO_HEADERS_SENT', '');