MDL-74602 mod_assign: disable activity header on embedded grader page

This commit is contained in:
Jake Dallimore 2022-05-03 09:55:22 +08:00
parent cc94ab171d
commit 0402dfdc95

View File

@ -4756,6 +4756,8 @@ class assign {
// Need submit permission to submit an assignment.
$this->require_view_grades();
$PAGE->activityheader->disable();
$PAGE->set_pagelayout('embedded');
$courseshortname = $this->get_context()->get_course_context()->get_context_name(false, true);