MDL-33733 fix broken zip_packer->extract_to_storage() when extracting from stored_file

This commit is contained in:
Petr Skoda
2012-06-25 01:32:50 +02:00
committed by Eloy Lafuente (stronk7)
parent ba3e7df265
commit aefe9734fa
+1 -1
View File
@@ -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');