mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-52646 mod_scorm: fix missing launch_data for SCORM 2004
This commit is contained in:
parent
fed66ad9e2
commit
96f56b6e29
@ -185,7 +185,7 @@ function SCORMapi1_3(def, cmiobj, cmiint, cmicommentsuser, cmicommentslms, scorm
|
||||
'cmi.interactions.n.result':{'pattern':CMIIndex, 'format':CMIResult, 'mod':'rw'},
|
||||
'cmi.interactions.n.latency':{'pattern':CMIIndex, 'format':CMITimespan, 'mod':'rw'},
|
||||
'cmi.interactions.n.description':{'pattern':CMIIndex, 'format':CMILangString250, 'mod':'rw'},
|
||||
'cmi.launch_data':{'defaultvalue':def[scoid]['cmi.exit'], 'mod':'r'},
|
||||
'cmi.launch_data':{'defaultvalue':def[scoid]['cmi.launch_data'], 'mod':'r'},
|
||||
'cmi.learner_id':{'defaultvalue':def[scoid]['cmi.learner_id'], 'mod':'r'},
|
||||
'cmi.learner_name':{'defaultvalue':def[scoid]['cmi.learner_name'], 'mod':'r'},
|
||||
'cmi.learner_preference._children':{'defaultvalue':student_preference_children, 'mod':'r'},
|
||||
|
@ -1280,6 +1280,7 @@ function get_scorm_default (&$userdata, $scorm, $scoid, $attempt, $mode) {
|
||||
$def['cmi.suspend_data'] = scorm_isset($userdata, 'cmi.suspend_data');
|
||||
$def['cmi.time_limit_action'] = scorm_isset($userdata, 'timelimitaction');
|
||||
$def['cmi.total_time'] = scorm_isset($userdata, 'cmi.total_time', 'PT0H0M0S');
|
||||
$def['cmi.launch_data'] = scorm_isset($userdata, 'datafromlms');
|
||||
|
||||
return $def;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user