MDL-64821 files: increase icon image size for stored file exporter

The default size for the stored file icon was only 16px by 16px which
wasn't suitable for display in the new forum layout. I've increased
the default size to 128px by 128px so that it looks better scaled up.
This commit is contained in:
Ryan Wyllie 2019-09-03 09:53:31 +08:00
parent 060da692b6
commit e81be9a8b1

View File

@ -147,7 +147,7 @@ class stored_file_exporter extends \core\external\exporter {
$filenameshort .= substr($filename, -4);
}
$icon = $this->file->is_directory() ? file_folder_icon() : file_file_icon($this->file);
$icon = $this->file->is_directory() ? file_folder_icon(128) : file_file_icon($this->file, 128);
$url = moodle_url::make_pluginfile_url(
$this->file->get_contextid(),