summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2010-11-24 16:50:50 +0000
committerChristian Schneider2010-11-24 16:50:50 +0000
commita44827633d4fa0a44009d013e79b704a629c7962 (patch)
tree2c2699c3c4e304e888435c5f1975b7d9ce9b44ee
parentbadc70661dc77a15f3b28f0d860d12ee6fd7bde3 (diff)
downloaditools-a44827633d4fa0a44009d013e79b704a629c7962.tar.gz
itools-a44827633d4fa0a44009d013e79b704a629c7962.tar.bz2
itools-a44827633d4fa0a44009d013e79b704a629c7962.zip
Enable latest IE mode
-rw-r--r--it_html.class4
1 files changed, 4 insertions, 0 deletions
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]));