Permalink
Browse files

fixed

  • Loading branch information...
1 parent 5f30ffd commit 5a301c16a1fd75a3aaed65900f835166ce3c3f62 Rajesh Taneja committed Nov 8, 2011
Showing with 8 additions and 2 deletions.
  1. +7 −1 backup/util/ui/restore_ui.class.php
  2. +1 −1 backup/util/ui/restore_ui_stage.class.php
View
8 backup/util/ui/restore_ui.class.php
@@ -224,14 +224,20 @@ public function enforce_changed_dependencies() {
/**
* Cancels the current restore and redirects the user back to the relevant place
*/
- public function cancel_restore() {
+ public function cancel_process() {
//Delete temporary restore course if exists.
if ($this->controller->get_target() == backup::TARGET_NEW_COURSE) {
$this->cleanup();
}
parent::cancel_process();
}
/**
+ * wrapper of cancel_process, kept for avoiding regression.
+ */
+ public function cancel_restore() {
+ $this->cancel_process();
+ }
+ /**
* Gets an array of progress bar items that can be displayed through the restore renderer.
* @return array Array of items for the progress bar
*/
View
2 backup/util/ui/restore_ui_stage.class.php
@@ -333,7 +333,7 @@ public function process(base_moodleform $form=null) {
$form = $this->initialise_stage_form();
if ($form->is_cancelled()) {
- $this->ui->cancel_restore();
+ $this->ui->cancel_process();
}
$data = $form->get_data();

0 comments on commit 5a301c1

Please sign in to comment.