From a44827633d4fa0a44009d013e79b704a629c7962 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 24 Nov 2010 16:50:50 +0000 Subject: Enable latest IE mode --- it_html.class | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'it_html.class') diff --git a/it_html.class b/it_html.class index be13fe4..7f4227e 100644 --- a/it_html.class +++ b/it_html.class @@ -151,6 +151,10 @@ function head($args = array()) $header = $p['show_content_type'] ? meta(array('http-equiv' => "Content-Type", 'content' => $p['content-type'])) : ""; + # Enable latest IE mode + if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) + $header .= meta(array('http-equiv' => "X-UA-Compatible", 'content' => "IE=edge")); + foreach(array('description', 'keywords') as $name) if (!empty($p[$name])) $header .= meta(array('name' => $name, 'content' => $p[$name])); -- cgit v1.2.3