mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-16011 send_temp_file() now used in grades xml export
This commit is contained in:
parent
15325f557d
commit
f6f2f42dae
@ -24,6 +24,7 @@
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require_once($CFG->dirroot.'/grade/export/lib.php');
|
||||
require_once($CFG->libdir.'/filelib.php');
|
||||
|
||||
class grade_export_xml extends grade_export {
|
||||
|
||||
@ -107,17 +108,8 @@ class grade_export_xml extends grade_export {
|
||||
$gui->close();
|
||||
$geub->close();
|
||||
|
||||
@header('Cache-Control: private, must-revalidate, pre-check=0, post-check=0, max-age=0');
|
||||
@header('Expires: '. gmdate('D, d M Y H:i:s', 0) .' GMT');
|
||||
@header('Pragma: no-cache');
|
||||
header("Content-type: text/xml; charset=UTF-8");
|
||||
header("Content-Disposition: attachment; filename=\"$downloadfilename\"");
|
||||
|
||||
readfile_chunked($tempfilename);
|
||||
|
||||
@unlink($tempfilename);
|
||||
|
||||
exit();
|
||||
@header("Content-type: text/xml; charset=UTF-8");
|
||||
send_temp_file($tempfilename, $downloadfilename, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user