]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9925 - When a user presses cancel on restore they are sent to
authorpoltawski <poltawski>
Sat, 29 Dec 2007 20:31:10 +0000 (20:31 +0000)
committerpoltawski <poltawski>
Sat, 29 Dec 2007 20:31:10 +0000 (20:31 +0000)
/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

index 0224a304cc74f99161570bf51245f811ba5eed23..0e4d82c2986cbd14fd4410c37cb34f09b2d966e2 100644 (file)
     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;
     }