Skip to content

Commit

Permalink
Merge branch 'master_MDL-58080' of https://github.com/danmarsden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Mar 20, 2018
2 parents 3f6ede9 + 37ddc23 commit 2624bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/scorm/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ function scorm_pluginfile($course, $cm, $context, $filearea, $args, $forcedownlo
$revision = (int)array_shift($args); // Prevents caching problems - ignored here.
$relativepath = implode('/', $args);
$fullpath = "/$context->id/mod_scorm/content/0/$relativepath";
// TODO: add any other access restrictions here if needed!
$options['immutable'] = true; // Add immutable option, $relativepath changes on file update.

} else if ($filearea === 'package') {
// Check if the global setting for disabling package downloads is enabled.
Expand Down

0 comments on commit 2624bb1

Please sign in to comment.