SCORM MDL-17891 fix loss of session data - thanks to Ron and Matteo for report/fixes missed fix for LMSCommit merged from HEAD

This commit is contained in:
Dan Marsden
2010-06-24 02:26:12 +00:00
parent 63a5affbda
commit 98bad24a00
+15 -1
View File
@@ -415,7 +415,21 @@ function SCORMapi1_2() {
//echo 'alert("Data Commited");';
}
?>
return "true";
<?php
if (debugging('',DEBUG_DEVELOPER)) {
echo 'LogAPICall("LMSCommit", "AJAXResult", result, 0);';
}
?>
result = ('true' == result) ? 'true' : 'false';
errorCode = (result ==' true')? '0' : '101';
<?php
if (debugging('',DEBUG_DEVELOPER)) {
//echo 'alert("Finished SCORM 1.2");';
echo 'LogAPICall("LMSCommit", "result", result, 0);';
echo 'LogAPICall("LMSCommit", param, "", 0);';
}
?>
return result;
} else {
errorCode = "301";
}