Skip to content
Browse files

Merge branch 'm20_MDL-27404' of git://github.com/danmarsden/moodle in…

…to MOODLE_20_STABLE
  • Loading branch information...
2 parents 71472b0 + 0176523 commit 6160c1721c17fe43cf4f3c6902495be0ca51a35e Sam Hemelryk committed Jun 13, 2011
Showing with 7 additions and 4 deletions.
  1. +4 −2 mod/scorm/api.php
  2. +3 −2 mod/scorm/player.php
View
6 mod/scorm/api.php
@@ -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)) {
View
5 mod/scorm/player.php
@@ -17,8 +17,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)) {

0 comments on commit 6160c17

Please sign in to comment.
Something went wrong with that request. Please try again.