aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/models/Courseware/BlockTypes/BlockType.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/Courseware/BlockTypes/BlockType.php b/lib/models/Courseware/BlockTypes/BlockType.php
index 88f07b1..de69161 100644
--- a/lib/models/Courseware/BlockTypes/BlockType.php
+++ b/lib/models/Courseware/BlockTypes/BlockType.php
@@ -457,7 +457,7 @@ abstract class BlockType
$template->set_attributes([
'title' => $this->getTitle(),
'payload' => $this->getPayload(),
- 'files' => $this->getFiles()
+ 'files' => $this->block->files
]);
} catch (\Exception $e) {
// it catches the exception mostly because the template file could not be found.