mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
SCORM MDL-17891 fix loss of session data - thanks to Ron and Matteo for report/fixes
This commit is contained in:
parent
0e5bfd669f
commit
7f82b2e3e9
@ -198,10 +198,17 @@ function SCORMapi1_2() {
|
||||
setTimeout('top.document.location=top.next;',500);
|
||||
}
|
||||
}
|
||||
<?php
|
||||
if (scorm_debugging($scorm)) {
|
||||
echo 'LogAPICall("LMSFinish", "AJAXResult", result, 0);';
|
||||
}
|
||||
?>
|
||||
result = ('true' == result) ? 'true' : 'false';
|
||||
errorCode = (result == 'true')? '0' : '101';
|
||||
<?php
|
||||
if (scorm_debugging($scorm)) {
|
||||
//echo 'alert("Finished SCORM 1.2");';
|
||||
echo 'LogAPICall("LMSResult", param, "", result);';
|
||||
echo 'LogAPICall("LMSFinish", "result", result, 0);';
|
||||
echo 'LogAPICall("LMSFinish", param, "", 0);';
|
||||
}
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user