1
0
mirror of https://github.com/moodle/moodle.git synced 2025-05-15 20:58:15 +02:00

MDL-9925 - When a user presses cancel on restore they are sent to

/admin/. For teachers this gives an ugly access denied message,
so instead send them back to the course they came from.

Thanks to Wen Hao Chuang for the fix!

merged from MOODLE_19_STABLE
This commit is contained in:
poltawski 2007-12-29 20:31:10 +00:00
parent 6e1cc99de7
commit b3ec4f86cf

@ -109,7 +109,7 @@
if ($cancel) {
print_header("$site->shortname: $strcourserestore", $site->fullname, $navigation);
print_heading(get_string("restorecancelled"));
print_continue("$CFG->wwwroot/$CFG->admin/index.php");
print_continue("$CFG->wwwroot/course/view.php?id=".$id);
print_footer();
exit;
}