Skip to content

Commit

Permalink
Merge branch 'MDL-53440-master' of git://github.com/cameron1729/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Apr 11, 2016
2 parents c62fa3c + 1b276bf commit d532702
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions course/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
case 'topcat':
$returnurl = new moodle_url($CFG->wwwroot . '/course/');
break;
case 'pending':
$returnurl = new moodle_url($CFG->wwwroot . '/course/pending.php');
break;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion course/pending.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
$courseid = $course->approve();

if ($courseid !== false) {
redirect($CFG->wwwroot.'/course/edit.php?id=' . $courseid);
redirect(new moodle_url('/course/edit.php', ['id' => $courseid, 'returnto' => 'pending']));
} else {
print_error('courseapprovedfailed');
}
Expand Down

0 comments on commit d532702

Please sign in to comment.