Skip to content

Commit

Permalink
MDL-27404 SCORM fix for IE 6 - thanks to Howard Miller
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Jun 12, 2011
1 parent 1de5024 commit 7ef0866
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions mod/scorm/api.php
Expand Up @@ -10,8 +10,10 @@
$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 (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false) {
@ini_set('zlib.output_compression', 'Off');
@apache_setenv('no-gzip', 1);
header( 'Content-Type: application/javascript' );
}

if (!empty($id)) {
Expand Down
5 changes: 3 additions & 2 deletions mod/scorm/player.php
Expand Up @@ -16,8 +16,9 @@
$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 (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false) {
@ini_set('zlib.output_compression', 'Off');
@apache_setenv('no-gzip', 1);
}

if (!empty($id)) {
Expand Down

0 comments on commit 7ef0866

Please sign in to comment.