mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Merge branch 'm29_MDL-43818_Unable_Download_Package_Via_URL' of https://github.com/scara/moodle
This commit is contained in:
commit
7e5c5b83c1
@ -950,6 +950,7 @@ function scorm_pluginfile($course, $cm, $context, $filearea, $args, $forcedownlo
|
||||
if (!has_capability('moodle/course:manageactivities', $context)) {
|
||||
return false;
|
||||
}
|
||||
$revision = (int)array_shift($args); // Prevents caching problems - ignored here.
|
||||
$relativepath = implode('/', $args);
|
||||
$fullpath = "/$context->id/mod_scorm/package/0/$relativepath";
|
||||
$lifetime = 0; // No caching here.
|
||||
|
Loading…
x
Reference in New Issue
Block a user