MDL-29213 - fix for bug with flash player and IE 9

(cherry-picked and amended with 1-line whitespace)
This commit is contained in:
Dan Marsden 2011-10-31 14:52:07 +13:00 committed by Eloy Lafuente (stronk7)
parent e785b0f3ca
commit a5ba44f93c

View file

@ -34,6 +34,14 @@ if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false) {
@apache_setenv('no-gzip', 1);
}
//IE 9 workaround for Flash bug: MDL-29213
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 9') !== false) {
if (!isset($CFG->additionalhtmlhead)) { //check to make sure set first - that way we can use .=
$CFG->additionalhtmlhead = '';
}
$CFG->additionalhtmlhead .= '<meta http-equiv="X-UA-Compatible" content="IE=8" />';
}
if (!empty($id)) {
if (! $cm = get_coursemodule_from_id('scorm', $id)) {
print_error('invalidcoursemodule');
@ -268,4 +276,4 @@ if (empty($scorm->popup) || $displaymode == 'popup') {
if (!empty($forcejs)) {
echo $OUTPUT->box(get_string("forcejavascriptmessage", "scorm"), "generalbox boxaligncenter forcejavascriptmessage");
}
echo $OUTPUT->footer();
echo $OUTPUT->footer();