Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SCORM MDL-20588 workaround for IE 6 bug - turn zlib compression off i…

…f IE 6 is detected. merged from HEAD
  • Loading branch information...
commit 949cf6c6b39d12284dc6dae8f6184b8e429ec973 1 parent ac24d26
@danmarsden danmarsden authored
Showing with 10 additions and 0 deletions.
  1. +5 −0 mod/scorm/api.php
  2. +5 −0 mod/scorm/player.php
View
5 mod/scorm/api.php
@@ -9,6 +9,11 @@
$mode = optional_param('mode', '', PARAM_ALPHA); // navigation mode
$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 (!empty($id)) {
if (! $cm = get_coursemodule_from_id('scorm', $id)) {
error("Course Module ID was incorrect");
View
5 mod/scorm/player.php
@@ -14,6 +14,11 @@
$currentorg = optional_param('currentorg', '', PARAM_RAW); // selected organization
$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 (!empty($id)) {
if (! $cm = get_coursemodule_from_id('scorm', $id)) {
error("Course Module ID was incorrect");
Please sign in to comment.
Something went wrong with that request. Please try again.