mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-50972 mod_scorm: set autocommit as boolean
var currently passed as string so not evaluated correctly
This commit is contained in:
parent
0dfcc2541a
commit
2e6c821d35
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user