MDL-29213 SCORM - fix for bug with flash player and IE 9
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user