diff --git a/renderers/object_renderer.php b/renderers/object_renderer.php index 24d4957..8cdeae6 100644 --- a/renderers/object_renderer.php +++ b/renderers/object_renderer.php @@ -468,20 +468,26 @@ public function render_plagiarism_links($files) { */ protected function render_mod_coursework_coursework(mod_coursework_coursework $coursework) { - global $PAGE, $USER; + global $CFG, $PAGE, $USER; + + $out = ''; - // Show the details of the assessment (Name and introduction. - $out = html_writer::tag('h2', $coursework->name); + if ($CFG->branch < 400) { + // Show the details of the assessment (Name and introduction. + $out .= html_writer::tag('h2', $coursework->name); + } if (has_capability('mod/coursework:allocate', $coursework->get_context())) { $warnings = new warnings($coursework); $out .= $warnings->not_enough_assessors(); } - // Intro has it's own
tags etc. - $out .= '
tags etc. + $out .= '