diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index e3a9b5838af..16f6c9c3890 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -4523,11 +4523,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();