mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-29213 - fix for bug with flash player and IE 9
(cherry-picked and amended with 1-line whitespace)
This commit is contained in:
parent
e785b0f3ca
commit
a5ba44f93c
1 changed files with 9 additions and 1 deletions
|
@ -34,6 +34,14 @@ if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false) {
|
|||
@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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue