diff --git a/lib/filelib.php b/lib/filelib.php index 0f3f252f6e3..0330a4b6aea 100644 --- a/lib/filelib.php +++ b/lib/filelib.php @@ -2369,7 +2369,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).