MDL-36487 do not use IE=edge header on pages that have custom X-UA-Compatible

Thanks Dan Poltawski for spotting this regression!
This commit is contained in:
Petr Škoda 2012-11-10 11:47:09 +01:00
parent 398862b92b
commit 791922735f

View file

@ -1848,7 +1848,10 @@ function send_headers($contenttype, $cacheable = true) {
@header('Content-Type: ' . $contenttype);
@header('Content-Script-Type: text/javascript');
@header('Content-Style-Type: text/css');
@header('X-UA-Compatible: IE=edge');
if (empty($CFG->additionalhtmlhead) or stripos($CFG->additionalhtmlhead, 'X-UA-Compatible') === false) {
@header('X-UA-Compatible: IE=edge');
}
if ($cacheable) {
// Allow caching on "back" (but not on normal clicks)