1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

Bugtracker #4065 - allow for xhtml mime-type in header

This commit is contained in:
e107steved
2007-09-01 09:05:24 +00:00
parent 845d6b2145
commit 1899e62b49

View File

@@ -6,9 +6,9 @@
| Released under the terms and conditions of the GNU General Public License (http://gnu.org). | 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 $ | $Source: /cvs_backup/e107_0.8/e107_themes/templates/header_default.php,v $
| $Revision: 1.10 $ | $Revision: 1.11 $
| $Date: 2007-07-11 14:07:26 $ | $Date: 2007-09-01 09:05:13 $
| $Author: sweetas $ | $Author: e107steved $
+-----------------------------------------------------------------------------------------------+ +-----------------------------------------------------------------------------------------------+
*/ */
@@ -71,6 +71,10 @@ if (!function_exists("parseheader")) {
// //
// send the charset to the browser - overrides spurious server settings with the lan pack settings. // send the charset to the browser - overrides spurious server settings with the lan pack settings.
// 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); header("Content-type: text/html; charset=".CHARSET, true);