Skip to content

Commit

Permalink
MDL-29213 - fix for bug with flash player and IE 9
Browse files Browse the repository at this point in the history
(cherry-picked and amended with 1-line whitespace)
  • Loading branch information
danmarsden authored and stronk7 committed Nov 1, 2011
1 parent e785b0f commit a5ba44f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mod/scorm/player.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= '<meta http-equiv="X-UA-Compatible" content="IE=8" />';
}

if (!empty($id)) {
if (! $cm = get_coursemodule_from_id('scorm', $id)) {
print_error('invalidcoursemodule');
Expand Down Expand Up @@ -268,4 +276,4 @@
if (!empty($forcejs)) {
echo $OUTPUT->box(get_string("forcejavascriptmessage", "scorm"), "generalbox boxaligncenter forcejavascriptmessage");
}
echo $OUTPUT->footer();
echo $OUTPUT->footer();

0 comments on commit a5ba44f

Please sign in to comment.