Skip to content

Commit

Permalink
MDL-50972 mod_scorm: set autocommit as boolean
Browse files Browse the repository at this point in the history
var currently passed as string so not evaluated correctly
  • Loading branch information
danmarsden committed Dec 14, 2015
1 parent 0dfcc25 commit 2e6c821
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mod/scorm/datamodels/scorm_12.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
$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));
Expand Down
1 change: 1 addition & 0 deletions mod/scorm/datamodels/scorm_13.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
}
}

$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));
Expand Down

0 comments on commit 2e6c821

Please sign in to comment.