MDL-50972 mod_scorm: set autocommit as boolean
var currently passed as string so not evaluated correctly
This commit is contained in:
@@ -51,6 +51,7 @@ if (intval(get_config("scorm", "scorm12standard"))) {
|
||||
$cmistring4096 = $cmistring256;
|
||||
}
|
||||
|
||||
$scorm->autocommit = ($scorm->autocommit === "1") ? true : false;
|
||||
$PAGE->requires->js_init_call('M.scorm_api.init', array($def, $cmiobj, $cmiint, $cmistring256, $cmistring4096,
|
||||
scorm_debugging($scorm), $scorm->auto, $scorm->id, $CFG->wwwroot,
|
||||
sesskey(), $scoid, $attempt, $mode, $id, $currentorg, $scorm->autocommit));
|
||||
|
||||
@@ -47,6 +47,7 @@ if ($scoes = $DB->get_records('scorm_scoes', array('scorm' => $scorm->id), 'sort
|
||||
}
|
||||
}
|
||||
|
||||
$scorm->autocommit = ($scorm->autocommit === "1") ? true : false;
|
||||
$PAGE->requires->js_init_call('M.scorm_api.init', array($def, $cmiobj, $cmiint, $cmicommentsuser, $cmicommentslms,
|
||||
scorm_debugging($scorm), $scorm->auto, $scorm->id, $CFG->wwwroot,
|
||||
sesskey(), $scoid, $attempt, $mode, $id, $currentorg, $scorm->autocommit));
|
||||
|
||||
Reference in New Issue
Block a user