From 1899e62b49d0f3df079555137cd143b7013d1369 Mon Sep 17 00:00:00 2001 From: e107steved Date: Sat, 1 Sep 2007 09:05:24 +0000 Subject: [PATCH] Bugtracker #4065 - allow for xhtml mime-type in header --- e107_themes/templates/header_default.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/e107_themes/templates/header_default.php b/e107_themes/templates/header_default.php index 28a6dcb9c..e617aafb4 100644 --- a/e107_themes/templates/header_default.php +++ b/e107_themes/templates/header_default.php @@ -6,9 +6,9 @@ | Released under the terms and conditions of the GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_themes/templates/header_default.php,v $ -| $Revision: 1.10 $ -| $Date: 2007-07-11 14:07:26 $ -| $Author: sweetas $ +| $Revision: 1.11 $ +| $Date: 2007-09-01 09:05:13 $ +| $Author: e107steved $ +-----------------------------------------------------------------------------------------------+ */ @@ -71,7 +71,11 @@ if (!function_exists("parseheader")) { // // send the charset to the browser - overrides spurious server settings with the lan pack settings. -header("Content-type: text/html; charset=".CHARSET, true); +// And set the MIME type appropriately +if (stristr($_SERVER["HTTP_ACCEPT"], "application/xhtml+xml")) + header("Content-type: application/xhtml+xml; charset=".CHARSET, true); +else + header("Content-type: text/html; charset=".CHARSET, true); echo (defined("STANDARDS_MODE") ? "" : "\n")."\n";