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 .= '

'; - $out .= format_module_intro('coursework', $coursework, $coursework->get_coursemodule_id()); - $out .= '
'; + if ($CFG->branch < 400) { + // Intro has it's own

tags etc. + $out .= '

'; + $out .= format_module_intro('coursework', $coursework, $coursework->get_coursemodule_id()); + $out .= '
'; + } // Deadlines section. $out .= html_writer::tag('h3', get_string('deadlines', 'coursework')); @@ -1477,7 +1483,7 @@ private function render_personal_deadline_table_row($personal_deadline_row) { 'courseworkid' => $personal_deadline_row->get_coursework()->id, 'setpersonaldeadlinespage' => '1' ); - + $allocatable_cell_helper = $personal_deadline_row->get_allocatable_cell(); $personaldeadlines_cell_helper = $personal_deadline_row->get_personal_deadline_cell();