MDL-43818 SCORM: unable to download the Package via URL.

This commit is contained in:
Matteo Scaramuccia
2015-03-30 20:38:50 +02:00
committed by Matteo Scaramuccia
parent 0a4b99f35b
commit a9e99ebd02
+1
View File
@@ -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.