Merge branch 'master_MDL-31039' of git://github.com/danmarsden/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2012-02-01 00:41:25 +01:00
commit 94a0c97464
2 changed files with 3 additions and 1 deletions

View File

@ -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;
} }

View File

@ -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'];
} }
} }