From 30f1f0778f1f5d8821cde785ada12a1a269a88ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Thu, 4 May 2023 15:35:00 +0200 Subject: [PATCH] MDL-77432 mod_assign: Confirm submission page standard and not incourse --- mod/assign/locallib.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index ec63f5724f2..aacaf4fe3ee 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -4332,10 +4332,12 @@ class assign { * @return string */ protected function view_remove_submission_confirm() { - global $USER; + global $USER, $PAGE; $userid = optional_param('userid', $USER->id, PARAM_INT); + $PAGE->set_pagelayout('standard'); + if (!$this->can_edit_submission($userid, $USER->id)) { throw new \moodle_exception('nopermission'); } @@ -5233,10 +5235,12 @@ class assign { * @return string */ protected function check_submit_for_grading($mform) { - global $USER, $CFG; + global $USER, $CFG, $PAGE; require_once($CFG->dirroot . '/mod/assign/submissionconfirmform.php'); + $PAGE->set_pagelayout('standard'); + // Check that all of the submission plugins are ready for this submission. // Also check whether there is something to be submitted as well against atleast one. $notifications = array();