diff options
author | Christian Schneider | 2010-11-24 16:50:50 +0000 |
---|---|---|
committer | Christian Schneider | 2010-11-24 16:50:50 +0000 |
commit | a44827633d4fa0a44009d013e79b704a629c7962 (patch) | |
tree | 2c2699c3c4e304e888435c5f1975b7d9ce9b44ee | |
parent | badc70661dc77a15f3b28f0d860d12ee6fd7bde3 (diff) | |
download | itools-a44827633d4fa0a44009d013e79b704a629c7962.tar.gz itools-a44827633d4fa0a44009d013e79b704a629c7962.tar.bz2 itools-a44827633d4fa0a44009d013e79b704a629c7962.zip |
Enable latest IE mode
-rw-r--r-- | it_html.class | 4 |
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])); |