MDL-14589 improved _pluginfile function - added forcedownload param
This commit is contained in:
+1
-1
@@ -281,7 +281,7 @@ if ($context->contextlevel == CONTEXT_SYSTEM) {
|
||||
|
||||
$filefunction = $modname.'_pluginfile';
|
||||
if (function_exists($filefunction)) {
|
||||
if ($filefunction($course, $cminfo, $context, $filearea, $args) !== false) {
|
||||
if ($filefunction($course, $cminfo, $context, $filearea, $args, $forcedownload) !== false) {
|
||||
die;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user