MDL-13431 - SCORM results not transferring to Gradebook. SCORM API debugging tool - add reference to SCORM, and SCO identifier. backport 1.9.

This commit is contained in:
piers
2008-08-22 01:38:37 +00:00
parent e45cc3e023
commit cf42577a41
3 changed files with 5 additions and 2 deletions
+3
View File
@@ -66,6 +66,9 @@
} else {
error('Sco not found');
}
if (!$sco = scorm_get_sco($scoid)) {
error('Sco not found');
}
$scorm->version = strtolower(clean_param($scorm->version, PARAM_SAFEDIR)); // Just to be safe
if (file_exists($CFG->dirroot.'/mod/scorm/datamodels/'.$scorm->version.'.js.php')) {
include_once($CFG->dirroot.'/mod/scorm/datamodels/'.$scorm->version.'.js.php');
+1 -1
View File
@@ -627,7 +627,7 @@ var API = new SCORMapi1_2();
// pull in the debugging utilities
if (debugging('',DEBUG_DEVELOPER)) {
include_once($CFG->dirroot.'/mod/scorm/datamodels/debug.js.php');
echo 'AppendToLog("Moodle SCORM 1.2 API Loaded", 0);';
echo 'AppendToLog("Moodle SCORM 1.2 API Loaded, Activity: '.$scorm->name.', SCO: '.$sco->identifier.'", 0);';
}
?>
+1 -1
View File
@@ -1173,6 +1173,6 @@ var API_1484_11 = new SCORMapi1_3();
// pull in the debugging utilities
if (debugging('',DEBUG_DEVELOPER)) {
include_once($CFG->dirroot.'/mod/scorm/datamodels/debug.js.php');
echo 'AppendToLog("Moodle SCORM 1.3 API Loaded", 0);';
echo 'AppendToLog("Moodle SCORM 1.3 API Loaded, Activity: '.$scorm->name.', SCO: '.$sco->identifier.'", 0);';
}
?>