MDL-41838 Backup/restore: Support .tar.gz format for .mbz (2 of 2)
[moodle.git] / backup / util / ui / restore_ui_stage.class.php
index 327722e..dd58ca8 100644 (file)
@@ -212,7 +212,7 @@ class restore_ui_stage_confirm extends restore_ui_independent_stage implements f
 
         $this->filepath = restore_controller::get_tempdir_name($this->contextid, $USER->id);
 
-        $fb = get_file_packer();
+        $fb = get_file_packer('application/vnd.moodle.backup');
         $result = $fb->extract_to_pathname("$CFG->tempdir/backup/".$this->filename,
                 "$CFG->tempdir/backup/$this->filepath/", null, $this);