Made creation of h5p export file overwrite existing file

namespaces
Pål Jørgensen 2014-11-19 12:43:59 +01:00
parent 6e17c540fc
commit 60d166c6da
1 changed files with 1 additions and 1 deletions

View File

@ -1465,7 +1465,7 @@ Class H5PExport {
// Create new zip instance.
$zip = new ZipArchive();
$zip->open($zipPath, ZIPARCHIVE::CREATE);
$zip->open($zipPath, ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE););
// Get all files and folders in $tempPath
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($tempPath . DIRECTORY_SEPARATOR));