mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
SCORM MDL-20588 workaround for IE 6 bug - turn zlib compression off if IE 6 is detected.
This commit is contained in:
parent
cf98da1a48
commit
15d0fae463
@ -9,6 +9,11 @@
|
||||
$mode = optional_param('mode', '', PARAM_ALPHA); // navigation mode
|
||||
$attempt = required_param('attempt', PARAM_INT); // new attempt
|
||||
|
||||
//IE 6 Bug workaround
|
||||
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false && ini_get('zlib.output_compression') == 'On') {
|
||||
ini_set('zlib.output_compression', 'Off');
|
||||
}
|
||||
|
||||
if (!empty($id)) {
|
||||
if (! $cm = get_coursemodule_from_id('scorm', $id)) {
|
||||
print_error('invalidcoursemodule');
|
||||
|
@ -14,6 +14,11 @@
|
||||
$currentorg = optional_param('currentorg', '', PARAM_RAW); // selected organization
|
||||
$newattempt = optional_param('newattempt', 'off', PARAM_ALPHA); // the user request to start a new attempt
|
||||
|
||||
//IE 6 Bug workaround
|
||||
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false && ini_get('zlib.output_compression') == 'On') {
|
||||
ini_set('zlib.output_compression', 'Off');
|
||||
}
|
||||
|
||||
if (!empty($id)) {
|
||||
if (! $cm = get_coursemodule_from_id('scorm', $id)) {
|
||||
print_error('invalidcoursemodule');
|
||||
|
Loading…
x
Reference in New Issue
Block a user