Skip to content

Commit

Permalink
Fix xliff import
Browse files Browse the repository at this point in the history
  • Loading branch information
Narek13 committed Sep 7, 2021
1 parent d32bc88 commit b163dac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/js/importXLIFF.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
var data = new FormData();
data.append('file', fileToImport[0] );
data.append('action', ajaxAction);
data.append('projectId', projectInfo.projectI);
data.append('projectId', projectInfo.projectId);

$.ajax( {
url: ajaxurl,
Expand Down
2 changes: 1 addition & 1 deletion src/Xliff/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ protected function handleImport(array $files): void

foreach ($files as $file) {
$fileParts = pathinfo($file);
if (empty($fileParts['extension']) || $fileParts['extension'] !== 'zip') {
if (empty($fileParts['extension']) || $fileParts['extension'] === 'zip') {
continue;
}

Expand Down

0 comments on commit b163dac

Please sign in to comment.