diff --git a/lib/Features/Microsoft.php b/lib/Features/Microsoft.php index 6d04e6c..f4cc4b5 100644 --- a/lib/Features/Microsoft.php +++ b/lib/Features/Microsoft.php @@ -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; } } \ No newline at end of file