mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-41580 SCORM: allow imsmanifest.xml to be used in file system repos
This commit is contained in:
parent
7f3836d15a
commit
361a47d409
11 changed files with 153 additions and 14 deletions
|
@ -148,11 +148,14 @@ if (scorm_external_link($sco->launch)) {
|
|||
//TODO: does this happen?
|
||||
$result = $launcher;
|
||||
} else if ($scorm->scormtype === SCORM_TYPE_EXTERNAL) {
|
||||
// Remote learning activity
|
||||
// Remote learning activity.
|
||||
$result = dirname($scorm->reference).'/'.$launcher;
|
||||
} else if ($scorm->scormtype === SCORM_TYPE_LOCAL && strtolower($scorm->reference) == 'imsmanifest.xml') {
|
||||
// This SCORM content sits in a repository that allows relative links.
|
||||
$result = "$CFG->wwwroot/pluginfile.php/$context->id/mod_scorm/imsmanifest/$scorm->revision/$launcher";
|
||||
} else if ($scorm->scormtype === SCORM_TYPE_LOCAL or $scorm->scormtype === SCORM_TYPE_LOCALSYNC) {
|
||||
//note: do not convert this to use get_file_url() or moodle_url()
|
||||
//SCORM does not work without slasharguments and moodle_url() encodes querystring vars
|
||||
// Note: do not convert this to use get_file_url() or moodle_url()
|
||||
// SCORM does not work without slasharguments and moodle_url() encodes querystring vars.
|
||||
$result = "$CFG->wwwroot/pluginfile.php/$context->id/mod_scorm/content/$scorm->revision/$launcher";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue