Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed

  • Loading branch information...
commit 5a301c16a1fd75a3aaed65900f835166ce3c3f62 1 parent 5f30ffd
Rajesh Taneja authored
8 backup/util/ui/restore_ui.class.php
View
@@ -224,7 +224,7 @@ 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();
@@ -232,6 +232,12 @@ public function cancel_restore() {
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
*/
2  backup/util/ui/restore_ui_stage.class.php
View
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.