mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
MDL-13431 - SCORM results not transferring to Gradebook. SCORM API debugging tool - add reference to SCORM, and SCO identifier.
This commit is contained in:
parent
7ce6eb873d
commit
2aa9a35e4e
@ -66,6 +66,9 @@
|
||||
} else {
|
||||
print_error('cannotfindsco', 'scorm');
|
||||
}
|
||||
if (!$sco = scorm_get_sco($scoid)) {
|
||||
print_error('cannotfindsco', 'scorm');
|
||||
}
|
||||
$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');
|
||||
|
@ -626,7 +626,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);';
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -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);';
|
||||
}
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user