From a9e99ebd020d580f3dd053bbf89c9675e9fa81f3 Mon Sep 17 00:00:00 2001 From: Matteo Scaramuccia Date: Wed, 22 Jan 2014 22:26:15 +0100 Subject: [PATCH] MDL-43818 SCORM: unable to download the Package via URL. --- mod/scorm/lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/scorm/lib.php b/mod/scorm/lib.php index aa5f319bdac..5f3ffded74a 100644 --- a/mod/scorm/lib.php +++ b/mod/scorm/lib.php @@ -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.