Permalink
Browse files

Merge branch 'master_MDL-27404' of git://github.com/danmarsden/moodle

  • Loading branch information...
2 parents 16c2d2c + d1e3b5c commit aa8ec18b52c455f5a8059c315b8a8d14f22f2d75 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
@@ -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
@@ -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 aa8ec18

Please sign in to comment.