MDL-48013 calendar: force download of user files

This commit is contained in:
Petr Skoda
2014-11-04 01:41:48 +01:00
committed by Eloy Lafuente (stronk7)
parent cc74fd9ea2
commit e1331607a8
+1 -1
View File
@@ -4063,7 +4063,7 @@ function file_pluginfile($relativepath, $forcedownload, $preview = null) {
}
\core\session\manager::write_close(); // Unlock session during file serving.
send_stored_file($file, 60*60, 0, $forcedownload, array('preview' => $preview));
send_stored_file($file, 0, 0, true, array('preview' => $preview));
} else if ($filearea === 'event_description' and $context->contextlevel == CONTEXT_COURSE) {