diff --git a/mod/scorm/player.php b/mod/scorm/player.php index 0a09bbde2bbb4..de7e63463c084 100644 --- a/mod/scorm/player.php +++ b/mod/scorm/player.php @@ -34,6 +34,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 .= ''; +} + if (!empty($id)) { if (! $cm = get_coursemodule_from_id('scorm', $id)) { print_error('invalidcoursemodule'); @@ -268,4 +276,4 @@ if (!empty($forcejs)) { echo $OUTPUT->box(get_string("forcejavascriptmessage", "scorm"), "generalbox boxaligncenter forcejavascriptmessage"); } -echo $OUTPUT->footer(); \ No newline at end of file +echo $OUTPUT->footer();