SCORM MDL-17891 fix loss of session data - thanks to Ron and Matteo for report/fixes

This commit is contained in:
Dan Marsden 2010-06-24 02:19:11 +00:00
parent 0e5bfd669f
commit 7f82b2e3e9

View File

@ -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);';
}
?>