projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
27542a1
)
Use latest rendering engine for IE (bypass compatibility mode)
author
Alain Peyrat
<aljeux@free.fr>
Wed, 19 Oct 2011 16:41:56 +0000
(16:41 +0000)
committer
Alain Peyrat
<aljeux@free.fr>
Wed, 19 Oct 2011 16:41:56 +0000
(16:41 +0000)
src/common/include/pre.php
patch
|
blob
|
history
diff --git
a/src/common/include/pre.php
b/src/common/include/pre.php
index 7e4924b48364ba8e6336724339a0bcd40d9f4486..0de22456853d419c191c9e1fc6a65d5aca9131c7 100644
(file)
--- a/
src/common/include/pre.php
+++ b/
src/common/include/pre.php
@@
-45,6
+45,11
@@
if (getStringFromServer('HTTP_X_moz') === 'prefetch'){
exit;
}
exit;
}
+// Use latest rendering engine for IE (bypass compatibility mode)
+if (isset($_SERVER['HTTP_USER_AGENT']) && stripos($_SERVER['HTTP_USER_AGENT'], "msie")) {
+ header("X-UA-Compatible: IE=edge");
+}
+
if (!isset($no_gz_buffer) || !$no_gz_buffer) {
ob_start("ob_gzhandler");
}
if (!isset($no_gz_buffer) || !$no_gz_buffer) {
ob_start("ob_gzhandler");
}