diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index b88cc9e86f9..47e0a9a0232 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -4756,10 +4756,10 @@ class assign { // Need submit permission to submit an assignment. $this->require_view_grades(); - $PAGE->activityheader->disable(); - $PAGE->set_pagelayout('embedded'); + $PAGE->activityheader->disable(); + $courseshortname = $this->get_context()->get_course_context()->get_context_name(false, true); $args = [ 'contextname' => $this->get_context()->get_context_name(false, true),