From f2deadb30cfaadd0b1f92ee68b8ca5fddd4c06e7 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sun, 18 May 2003 22:53:11 +0000 Subject: [PATCH] Control when cancel has been selected. Inform and finalize. --- backup/restore.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/backup/restore.php b/backup/restore.php index 5c0e9fe58fa..5f5c9949ca0 100644 --- a/backup/restore.php +++ b/backup/restore.php @@ -52,6 +52,16 @@ exit; } + //If cancel has been selected, inform and end + if ($cancel) { + print_header("$site->shortname: $strcourserestore", $site->fullname, + "admin/index.php\">$stradministration -> $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,