]> git.mjollnir.org Git - moodle.git/commitdiff
Control when cancel has been selected. Inform and finalize.
authorstronk7 <stronk7>
Sun, 18 May 2003 22:53:11 +0000 (22:53 +0000)
committerstronk7 <stronk7>
Sun, 18 May 2003 22:53:11 +0000 (22:53 +0000)
backup/restore.php

index 5c0e9fe58fa5d4608279916ff8e4ca9843021d41..5f5c9949ca0828e70249d42436449942ec7c9108 100644 (file)
         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,