Skip to content

Commit

Permalink
Fixed conversion detection for old and new pilot files
Browse files Browse the repository at this point in the history
  • Loading branch information
riccio82 committed Oct 5, 2018
1 parent 72f1cef commit 710c957
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Features/Microsoft.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,14 @@ public function forceXLIFFConversion( $forceXliff, $_userIsLogged, $xliffPath )
if( !$_userIsLogged ) {
return $forceXliff;
}
$fileInfo = \DetectProprietaryXliff::getInfo( $xliffPath );
$fileInfo = \DetectProprietaryXliff::isXliff( null, $xliffPath );
if ( isset( $fileInfo[ 0 ] ) ) {
preg_match( '#tool-id\s*=\s*"mdxliff"#i', $fileInfo[ 0 ], $matches );
if ( !empty( $matches ) ) {
return true;
}
}
return $forceXliff;
return false;
}

}

0 comments on commit 710c957

Please sign in to comment.