Permalink
Browse files

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

  • Loading branch information...
1 parent e1fe0c5 commit 11fd3b45bb6615bb5f90fc7e65301b382467da7f @danmarsden danmarsden committed Oct 31, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 mod/scorm/player.php
View
@@ -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');

0 comments on commit 11fd3b4

Please sign in to comment.