mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'm22_MDL-31039' of git://github.com/danmarsden/moodle into MOODLE_22_STABLE
This commit is contained in:
commit
6badc27a66
2 changed files with 3 additions and 1 deletions
|
@ -185,7 +185,8 @@ function scorm_update_instance($scorm, $mform=null) {
|
||||||
|
|
||||||
} else if ($scorm->scormtype === SCORM_TYPE_IMSREPOSITORY) {
|
} else if ($scorm->scormtype === SCORM_TYPE_IMSREPOSITORY) {
|
||||||
$scorm->reference = $scorm->packageurl;
|
$scorm->reference = $scorm->packageurl;
|
||||||
|
} else if ($scorm->scormtype === SCORM_TYPE_AICCURL) {
|
||||||
|
$scorm->reference = $scorm->packageurl;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -397,6 +397,7 @@ class mod_scorm_mod_form extends moodleform_mod {
|
||||||
case SCORM_TYPE_LOCALSYNC :
|
case SCORM_TYPE_LOCALSYNC :
|
||||||
case SCORM_TYPE_EXTERNAL:
|
case SCORM_TYPE_EXTERNAL:
|
||||||
case SCORM_TYPE_IMSREPOSITORY:
|
case SCORM_TYPE_IMSREPOSITORY:
|
||||||
|
case SCORM_TYPE_AICCURL:
|
||||||
$default_values['packageurl'] = $default_values['reference'];
|
$default_values['packageurl'] = $default_values['reference'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue