Skip to content

Commit

Permalink
Export: remove legacy zip file after export, created by some componen…
Browse files Browse the repository at this point in the history
…ts during export
  • Loading branch information
chlulei committed Dec 19, 2024
1 parent b96140c commit 64d10ef
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ public function createExport(
# delete legacy export run dir
# tmp solution, remove if no longer needed
ilFileUtils::delDir($export_info->getLegacyExportRunDir());

# delete zip archive if the export of the component creates one
$zip_archive = $export_info->getLegacyExportRunDir() . ".zip";
if (file_exists($zip_archive)) {
unlink($zip_archive);
}
return $element;
}

Expand Down

0 comments on commit 64d10ef

Please sign in to comment.