mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
SCORM MDL-17891 pass back correct state if storeData fails in LMSFinish - thanks to Peter Chamberlin for the report.
This commit is contained in:
parent
25d18a5288
commit
67f941099a
1 changed files with 2 additions and 1 deletions
|
@ -201,10 +201,11 @@ function SCORMapi1_2() {
|
||||||
<?php
|
<?php
|
||||||
if (scorm_debugging($scorm)) {
|
if (scorm_debugging($scorm)) {
|
||||||
//echo 'alert("Finished SCORM 1.2");';
|
//echo 'alert("Finished SCORM 1.2");';
|
||||||
|
echo 'LogAPICall("LMSResult", param, "", result);';
|
||||||
echo 'LogAPICall("LMSFinish", param, "", 0);';
|
echo 'LogAPICall("LMSFinish", param, "", 0);';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
return "true";
|
return result;
|
||||||
} else {
|
} else {
|
||||||
errorCode = "301";
|
errorCode = "301";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue