From 5e092e254044a20af04e163adf9d0f4d2759a169 Mon Sep 17 00:00:00 2001 From: Nicolas Dunand Date: Tue, 6 Feb 2018 18:37:18 +0100 Subject: [PATCH] MDL-61344 mod_assign: Show additional files when adding submission --- mod/assign/locallib.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index 7da66eba3a1..901ce972f4c 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -4373,11 +4373,15 @@ class assign { return $this->view_notices($title, $message); } + $postfix = ''; + if ($this->has_visible_attachments()) { + $postfix = $this->render_area_files('mod_assign', ASSIGN_INTROATTACHMENT_FILEAREA, 0); + } $o .= $this->get_renderer()->render(new assign_header($this->get_instance(), $this->get_context(), $this->show_intro(), $this->get_course_module()->id, - $title)); + $title, '', $postfix)); if ($userid == $USER->id) { // We only show this if it their submission. $o .= $this->plagiarism_print_disclosure();