mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
Different format on headers for text downloads to improve performance on
more browsers
This commit is contained in:
parent
0f23e14e27
commit
e6073312c2
@ -135,7 +135,11 @@ class quiz_report extends quiz_default_report {
|
||||
/// Print header to force download
|
||||
|
||||
header("Content-Type: application/download\n");
|
||||
header("Content-Disposition: attachment; filename=\"$course->shortname $quiz->name.txt\"");
|
||||
header("Content-Disposition: attachment; filename=$course->shortname ".$quiz->name.".txt");
|
||||
header("Expires: 0");
|
||||
header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
|
||||
header("Pragma: public");
|
||||
|
||||
|
||||
/// Print names of all the fields
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user