scorm: MDL-16185 display warning when zlib_compression on - causes errors with certain browsers.
This commit is contained in:
@@ -188,4 +188,5 @@ $string['noattemptsallowed'] = "Number of attempts allowed";
|
||||
$string['noattemptsmade'] = "Number of attempts you have made";
|
||||
$string['gradeforattempt'] = "Grade for attempt";
|
||||
$string['exceededmaxattempts'] = "You have reached the maximum number of attempts.";
|
||||
$string['zlibwarning'] ='Warning: PHP Zlib compression has been enabled on this site, some users may experience issues loading SCORM objects in certain web browsers.';
|
||||
?>
|
||||
@@ -23,6 +23,10 @@ class mod_scorm_mod_form extends moodleform_mod {
|
||||
if (!$CFG->slasharguments) {
|
||||
$mform->addElement('static', '', '',notify(get_string('slashargs', 'scorm'), 'notifyproblem', 'center', true));
|
||||
}
|
||||
$zlib = ini_get('zlib.output_compression'); //check for zlib compression - if used, throw error because of IE bug. - SEE MDL-16185
|
||||
if (isset($zlib) && $zlib) {
|
||||
$mform->addElement('static', '', '',notify(get_string('zlibwarning', 'scorm'), 'notifyproblem', 'center', true));
|
||||
}
|
||||
//-------------------------------------------------------------------------------
|
||||
$mform->addElement('header', 'general', get_string('general', 'form'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user