Skip to content

Commit

Permalink
MDL-77432 mod_assign: Confirm submission page standard and not incourse
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed May 12, 2023
1 parent 017a327 commit f1dd604
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mod/assign/locallib.php
Expand Up @@ -4335,10 +4335,12 @@ protected function view_single_grade_page($mform) {
* @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');
}
Expand Down Expand Up @@ -5236,10 +5238,12 @@ public function view_batch_markingallocation($mform) {
* @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();
Expand Down

0 comments on commit f1dd604

Please sign in to comment.