includes/template.php
changeset 526 b2fb50d572c7
parent 511 f88c8c79d784
child 533 698a8f04957c
equal deleted inserted replaced
525:3f2dfdb99be4 526:b2fb50d572c7
  1013     ob_start();
  1013     ob_start();
  1014     
  1014     
  1015     if(!$this->theme_loaded)
  1015     if(!$this->theme_loaded)
  1016     {
  1016     {
  1017       $this->load_theme($session->theme, $session->style);
  1017       $this->load_theme($session->theme, $session->style);
       
  1018     }
       
  1019     
       
  1020     // I feel awful doing this.
       
  1021     if ( preg_match('/^W3C_Validator/', @$_SERVER['HTTP_USER_AGENT']) )
       
  1022     {
       
  1023       header('Content-type: application/xhtml+xml');
  1018     }
  1024     }
  1019     
  1025     
  1020     $headers_sent = true;
  1026     $headers_sent = true;
  1021     if(!defined('ENANO_HEADERS_SENT'))
  1027     if(!defined('ENANO_HEADERS_SENT'))
  1022       define('ENANO_HEADERS_SENT', '');
  1028       define('ENANO_HEADERS_SENT', '');