Merge branch 'm28_MDL-43818_Unable_Download_Package_Via_URL' of https://github.com/scara/moodle into MOODLE_28_STABLE

This commit is contained in:
Dan Poltawski
2015-03-31 09:27:54 +01:00
+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.