From 7d39e1b828d1913e34fd2fdc0f3fe528c47262d1 Mon Sep 17 00:00:00 2001 From: poltawski Date: Sat, 29 Dec 2007 23:45:38 +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! backported from MOODLE_18_STABLE --- backup/restore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/restore.php b/backup/restore.php index 1cf62d6896d..88f75baf185 100644 --- a/backup/restore.php +++ b/backup/restore.php @@ -106,7 +106,7 @@ print_header("$site->shortname: $strcourserestore", $site->fullname, "wwwroot/$CFG->admin/index.php\">$stradministration -> $strcourserestore"); 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; }