diff --git a/lib/filestorage/zip_packer.php b/lib/filestorage/zip_packer.php index 2cae4351137..a7726a66dbb 100644 --- a/lib/filestorage/zip_packer.php +++ b/lib/filestorage/zip_packer.php @@ -299,7 +299,7 @@ class zip_packer extends file_packer { global $CFG; if (!is_string($archivefile)) { - return $archivefile->extract_to_pathname($this, $contextid, $component, $filearea, $itemid, $pathbase, $userid); + return $archivefile->extract_to_storage($this, $contextid, $component, $filearea, $itemid, $pathbase, $userid); } check_dir_exists($CFG->tempdir.'/zip');