From c2c10bb22234dd62b340df8481d33cf39ae3935b Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Thu, 14 Jun 2012 13:19:58 +0200 Subject: [PATCH] MDL-33733 fix broken zip_packer->extract_to_storage() when extracting from stored_file --- lib/filestorage/zip_packer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filestorage/zip_packer.php b/lib/filestorage/zip_packer.php index 4eb67c0b14a..099944da12a 100644 --- a/lib/filestorage/zip_packer.php +++ b/lib/filestorage/zip_packer.php @@ -279,7 +279,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->dataroot.'/temp/zip');