Skip to content

Commit

Permalink
SCORM MDL-20588 workaround for IE 6 bug - turn zlib compression off i…
Browse files Browse the repository at this point in the history
…f IE 6 is detected. merged from HEAD
  • Loading branch information
danmarsden committed Dec 18, 2009
1 parent ac24d26 commit 949cf6c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mod/scorm/api.php
Expand Up @@ -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)) {
error("Course Module ID was incorrect");
Expand Down
5 changes: 5 additions & 0 deletions mod/scorm/player.php
Expand Up @@ -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)) {
error("Course Module ID was incorrect");
Expand Down

0 comments on commit 949cf6c

Please sign in to comment.