Skip to content

Commit

Permalink
MDL-68854 repository_contentbank: add size to content nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
vmdef committed May 28, 2020
1 parent 68fd8d8 commit d4af0f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions repository/contentbank/classes/helper.php
Expand Up @@ -106,6 +106,7 @@ public static function create_contentbank_content_node(\core_contentbank\content
'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)
Expand Down

0 comments on commit d4af0f4

Please sign in to comment.