includes/template.php
changeset 573 43e7254afdb4
parent 571 66e14e61613e
child 577 5118610ce160
equal deleted inserted replaced
572:c196e8f336b9 573:43e7254afdb4
  1144     // I feel awful doing this.
  1144     // I feel awful doing this.
  1145     if ( preg_match('/^W3C_Validator/', @$_SERVER['HTTP_USER_AGENT']) )
  1145     if ( preg_match('/^W3C_Validator/', @$_SERVER['HTTP_USER_AGENT']) )
  1146     {
  1146     {
  1147       header('Content-type: application/xhtml+xml');
  1147       header('Content-type: application/xhtml+xml');
  1148     }
  1148     }
       
  1149     
       
  1150     // Reassign one important variable that can need to be changed after init_vars(): ADDITIONAL_HEADERS
       
  1151     $this->assign_vars(array(
       
  1152         'ADDITIONAL_HEADERS' => $this->additional_headers
       
  1153       ));
  1149     
  1154     
  1150     $headers_sent = true;
  1155     $headers_sent = true;
  1151     if(!defined('ENANO_HEADERS_SENT'))
  1156     if(!defined('ENANO_HEADERS_SENT'))
  1152       define('ENANO_HEADERS_SENT', '');
  1157       define('ENANO_HEADERS_SENT', '');
  1153     if ( !$this->no_headers )
  1158     if ( !$this->no_headers )