Changeset 43660


Ignore:
Timestamp:
Dec 13, 2008, 6:12:05 AM (12 years ago)
Author:
ryandesign@…
Message:

Only send application/xhtml+xml Content-Type header if the browser indicates it supports it; otherwise use text/html. Web site is now viewable on Internet Explorer 6 for Windows. See #14062.

Location:
trunk/www/includes
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/includes/common.inc

    r40392 r43660  
    4343function print_header($title, $encoding) {
    4444    global $MPWEB, $trac_url, $svn_url, $downloads, $guide_url;
    45    
    46     header("Content-Type: application/xhtml+xml; charset=$encoding");
     45
     46    require_once 'AcceptMime.class.php';
     47    $accept_mime = new AcceptMime();
     48    $mime_type = "text/html";
     49    if ($accept_mime->acceptable("application/xhtml+xml")) {
     50        $mime_type = "application/xhtml+xml";
     51    }
     52    header("Content-Type: $mime_type; charset=$encoding");
     53
    4754    include("$MPWEB/includes/header.inc");
    4855    print_warnings();
Note: See TracChangeset for help on using the changeset viewer.