From b3ec4f86cf4e0e7dba58c492e6a0df86093c0e68 Mon Sep 17 00:00:00 2001 From: poltawski Date: Sat, 29 Dec 2007 20:31:10 +0000 Subject: [PATCH] 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 --- backup/restore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/restore.php b/backup/restore.php index 0224a304cc..0e4d82c298 100644 --- a/backup/restore.php +++ b/backup/restore.php @@ -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; } -- 2.39.5