Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,10 @@ public static function readCourse($filename, $delete = false)
$zip = new \PclZip($unzip_dir.'/backup.zip');
@chdir($unzip_dir);

// For course backups we must preserve original filenames so that
// paths in course_info.dat still match the files in backup_path.
$zip->extract(
PCLZIP_OPT_TEMP_FILE_ON,
PCLZIP_CB_PRE_EXTRACT,
'clean_up_files_in_zip'
PCLZIP_OPT_TEMP_FILE_ON
);

// remove the archive-file
Expand Down
Loading