From d4af0f4a74797415101509dccea9b7900560f384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20D=C3=A9niz=20Falc=C3=B3n?= Date: Thu, 28 May 2020 13:30:38 +0100 Subject: [PATCH] MDL-68854 repository_contentbank: add size to content nodes --- repository/contentbank/classes/helper.php | 1 + 1 file changed, 1 insertion(+) diff --git a/repository/contentbank/classes/helper.php b/repository/contentbank/classes/helper.php index 2df172de330..ea8a1696ecd 100644 --- a/repository/contentbank/classes/helper.php +++ b/repository/contentbank/classes/helper.php @@ -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)