Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-27404 SCORM fix for IE 6 - thanks to Howard Miller

  • Loading branch information...
commit 7ef0866c93703afa89a7f6555160cb78d0553517 1 parent 1de5024
@danmarsden danmarsden authored
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
@@ -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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.