]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14589 improved _pluginfile function - added forcedownload param
authorskodak <skodak>
Fri, 3 Jul 2009 13:39:14 +0000 (13:39 +0000)
committerskodak <skodak>
Fri, 3 Jul 2009 13:39:14 +0000 (13:39 +0000)
pluginfile.php

index 224f039c398b09594588bc742bcbd3d82eea5fdd..7a5bf6e80c59d9a2d65a99dd2c5b4f7ed7947f0d 100644 (file)
@@ -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;
         }
     }