MDL-77432 mod_assign: Confirm submission page standard and not incourse

This commit is contained in:
Luca Bösch
2023-05-12 09:42:22 +02:00
parent 0ec98042d6
commit d7c80d9c14
+6 -2
View File
@@ -4463,10 +4463,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)) {
print_error('nopermission');
}
@@ -5360,10 +5362,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();