Merge branch 'MDL-77432-401' of https://github.com/lucaboesch/moodle into MOODLE_401_STABLE

This commit is contained in:
Andrew Nicols 2023-05-15 22:12:44 +08:00
commit 946405d44b
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14

View File

@ -4335,10 +4335,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');
}
@ -5236,10 +5238,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();