Skip to content

Commit

Permalink
Merge branch 'master_MDL-27404' of git://github.com/danmarsden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Jun 13, 2011
2 parents 16c2d2c + d1e3b5c commit aa8ec18
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
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
$attempt = required_param('attempt', PARAM_INT); // new attempt $attempt = required_param('attempt', PARAM_INT); // new attempt


//IE 6 Bug workaround //IE 6 Bug workaround
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false && ini_get('zlib.output_compression') == 'On') { if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false) {
ini_set('zlib.output_compression', 'Off'); @ini_set('zlib.output_compression', 'Off');
@apache_setenv('no-gzip', 1);
header( 'Content-Type: application/javascript' );
} }


if (!empty($id)) { if (!empty($id)) {
Expand Down
5 changes: 3 additions & 2 deletions mod/scorm/player.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
$newattempt = optional_param('newattempt', 'off', PARAM_ALPHA); // the user request to start a new attempt $newattempt = optional_param('newattempt', 'off', PARAM_ALPHA); // the user request to start a new attempt


//IE 6 Bug workaround //IE 6 Bug workaround
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false && ini_get('zlib.output_compression') == 'On') { if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false) {
ini_set('zlib.output_compression', 'Off'); @ini_set('zlib.output_compression', 'Off');
@apache_setenv('no-gzip', 1);
} }


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

0 comments on commit aa8ec18

Please sign in to comment.