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...
1 parent c6a032b commit 98cdb41a4a9897b99ac07a89840e98fda3f3f089 @danmarsden danmarsden committed Dec 18, 2009
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
@@ -15,6 +15,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");

0 comments on commit 98cdb41

Please sign in to comment.