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

This commit is contained in:
Dan Marsden
2011-10-31 15:00:37 +13:00
parent e1fe0c5189
commit 11fd3b45bb
+8
View File
@@ -20,6 +20,14 @@
@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');