mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
MDL-14589 improved _pluginfile function - added forcedownload param
This commit is contained in:
parent
2e3da29789
commit
6c79b0980f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user