Permalink
Browse files

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

(cherry-picked and amended with 1-line whitespace)
  • Loading branch information...
1 parent e785b0f commit a5ba44f93c348d81619e9eeb977e8db64b726bcf @danmarsden danmarsden committed with stronk7 Oct 31, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 mod/scorm/player.php
View
@@ -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');
@@ -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.