source: trunk/www/includes/AcceptLanguage.class.php @ 73358

Last change on this file since 73358 was 43660, checked in by ryandesign@…, 12 years ago

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.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 439 bytes
Line 
1<?php
2
3# -*- coding: utf-8; mode: php; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=php:et:sw=4:ts=4:sts=4
4# $Id: AcceptLanguage.class.php 43660 2008-12-13 06:12:05Z ryandesign@macports.org $
5# Copyright (c) 2008, The MacPorts Project.
6
7require_once 'AcceptAbstract.class.php';
8
9class AcceptLanguage extends AcceptAbstract {
10    function AcceptLanguage() {
11        parent::AcceptAbstract(isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : '*');
12    }
13}
Note: See TracBrowser for help on using the repository browser.