MDL-33733 fix broken zip_packer->extract_to_storage() when extracting from stored_file
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
ba3e7df265
commit
aefe9734fa
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user