Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 01765239b0c68fbe4594ac5662954c73648bb106 1 parent 57e034c
Dan Marsden danmarsden authored

Showing 2 changed files with 7 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 2 mod/scorm/api.php
  2. +3 2 mod/scorm/player.php
6 mod/scorm/api.php
@@ -10,8 +10,10 @@
10 10 $attempt = required_param('attempt', PARAM_INT); // new attempt
11 11
12 12 //IE 6 Bug workaround
13   - if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false && ini_get('zlib.output_compression') == 'On') {
14   - ini_set('zlib.output_compression', 'Off');
  13 + if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false) {
  14 + @ini_set('zlib.output_compression', 'Off');
  15 + @apache_setenv('no-gzip', 1);
  16 + header( 'Content-Type: application/javascript' );
15 17 }
16 18
17 19 if (!empty($id)) {
5 mod/scorm/player.php
@@ -17,8 +17,9 @@
17 17 $newattempt = optional_param('newattempt', 'off', PARAM_ALPHA); // the user request to start a new attempt
18 18
19 19 //IE 6 Bug workaround
20   - if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false && ini_get('zlib.output_compression') == 'On') {
21   - ini_set('zlib.output_compression', 'Off');
  20 + if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false) {
  21 + @ini_set('zlib.output_compression', 'Off');
  22 + @apache_setenv('no-gzip', 1);
22 23 }
23 24
24 25 if (!empty($id)) {

0 comments on commit 0176523

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