Skip to content

Commit

Permalink
Merge pull request elementor#2 from andymac4182/patch-1
Browse files Browse the repository at this point in the history
Update to set file path to be relative instead of absolute
  • Loading branch information
leonstafford authored Feb 25, 2021
2 parents 9fcf5d7 + c570517 commit c3cea6e
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 c3cea6e

Please sign in to comment.