MDL-68854 repository_contentbank: add size to content nodes

This commit is contained in:
Víctor Déniz Falcón 2020-05-28 13:30:38 +01:00
parent 68fd8d8bdf
commit d4af0f4a74

View File

@ -106,6 +106,7 @@ class helper {
'author' => $file->get_author(),
'license' => $file->get_license(),
'isref' => $file->is_external_file(),
'size' => $file->get_filesize(),
'source' => $encodedpath,
'icon' => $OUTPUT->image_url(file_file_icon($file, 24))->out(false),
'thumbnail' => $OUTPUT->image_url(file_file_icon($file, 90))->out(false)