Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 1bd3952b19d4fb97faeb20a445f6f549354ddd9b 1 parent 9de8774
@danmarsden danmarsden authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 mod/scorm/player.php
View
8 mod/scorm/player.php
@@ -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');
Please sign in to comment.
Something went wrong with that request. Please try again.