Control when cancel has been selected. Inform and finalize.

This commit is contained in:
stronk7 2003-05-18 22:53:11 +00:00
parent 87d8623181
commit f2deadb30c

View File

@ -52,6 +52,16 @@
exit;
}
//If cancel has been selected, inform and end
if ($cancel) {
print_header("$site->shortname: $strcourserestore", $site->fullname,
"<A HREF=\"$moodle_home/$CFG->admin/index.php\">$stradministration</A> -> $strcourserestore");
print_heading(get_string("restorecancelled"));
print_continue("$moodle_home/$CFG->admin/index.php");
print_footer();
exit;
}
//We are here, so me have a file.
//Print header
print_header("$site->shortname: $strcourserestore", $site->fullname,