public function cancel_process() {
        // Delete temporary restore course if exists.
        if ($this->controller->get_target() == backup::TARGET_NEW_COURSE) {
            $this->cleanup();
        }
        parent::cancel_process();
    }
public function cancel_process() {
        // Delete temporary restore course if exists.
        if ($this->controller->get_target() == backup::TARGET_NEW_COURSE) {
            $this->cleanup();
        }
        parent::cancel_process();
    }
public function cancel_process ( ) { // Delete temporary restore course if exists. if ( $ this -> controller -> get_target ( ) == backup :: TARGET_NEW_COURSE ) { $ this -> cleanup ( ) ; } parent :: cancel_process ( ) ; }
Cancels the current restore and redirects the user back to the relevant place
Cancels the current restore and redirects the user back to the relevant place