mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 22:50:19 +01:00
Merge branch 'MDL-60320' of git://github.com/aolley/moodle
This commit is contained in:
commit
39dce3073f
@ -2425,7 +2425,7 @@ function send_stored_file($stored_file, $lifetime=null, $filter=0, $forcedownloa
|
||||
$size = 256;
|
||||
}
|
||||
$fileicon = file_file_icon($stored_file, $size);
|
||||
send_file($CFG->dirroot.'/pix/'.$fileicon.'.svg', basename($fileicon).'.svg');
|
||||
send_file($CFG->dirroot.'/pix/'.$fileicon.'.png', basename($fileicon).'.png');
|
||||
} else {
|
||||
// preview images have fixed cache lifetime and they ignore forced download
|
||||
// (they are generated by GD and therefore they are considered reasonably safe).
|
||||
|
Loading…
x
Reference in New Issue
Block a user