Skip to content

Commit

Permalink
MDL-9925 - When a user presses cancel on restore they are sent to
Browse files Browse the repository at this point in the history
/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
  • Loading branch information
poltawski committed Dec 29, 2007
1 parent 300185b commit 7d39e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup/restore.php
Expand Up @@ -106,7 +106,7 @@
print_header("$site->shortname: $strcourserestore", $site->fullname,
"<a href=\"$CFG->wwwroot/$CFG->admin/index.php\">$stradministration</a> -> $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;
}
Expand Down

0 comments on commit 7d39e1b

Please sign in to comment.