MDL-72413 feedback: Use the common module for setting the header

This commit is contained in:
Peter Dias
2021-12-13 09:49:34 +08:00
parent ea76db4cbc
commit 7e5b0f6289
11 changed files with 38 additions and 25 deletions
+4 -3
View File
@@ -48,10 +48,11 @@ if (!$feedbackstructure->can_view_analysis()) {
$PAGE->set_heading($course->fullname);
$PAGE->set_title($feedback->name);
$PAGE->activityheader->set_attrs([
'hidecompletion' => true,
'description' => ''
]);
echo $OUTPUT->header();
if (!$PAGE->has_secondary_navigation()) {
echo $OUTPUT->heading(format_string($feedback->name));
}
//get the groupid
$mygroupid = groups_get_activity_group($cm, true);