Skip to content

Commit

Permalink
Update to set file path to be relative instead of absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
andymac4182 authored Feb 25, 2021
1 parent 9fcf5d7 commit c570517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZipArchiver.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function generateArchive( string $processed_site_path ) : void {

if ( ! $zip_archive->addFile(
$real_filepath,
str_replace( $processed_site_path, '', $filename )
str_replace( $processed_site_path, '.', $filename )
)
) {
$err = 'Could not add file: ' . $filename;
Expand Down

0 comments on commit c570517

Please sign in to comment.