MDL-48013 calendar: force download of user files

This commit is contained in:
Petr Skoda
2014-11-04 01:40:52 +01:00
committed by Eloy Lafuente (stronk7)
parent bebd3ce8fc
commit 7ee4642bcb
+1 -1
View File
@@ -4076,7 +4076,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) {