diff options
author | aaukt <aaukt@users.noreply.github.com> | 2014-10-13 02:09:44 +0400 |
---|---|---|
committer | aaukt <aaukt@users.noreply.github.com> | 2014-10-13 02:09:44 +0400 |
commit | 6ae84ff682c1fb1605387ef5f0aa7f01d181514f (patch) | |
tree | f6360e3ecfc9ad10bf96fdd6811ca8b03a6fd9f6 /lib | |
parent | 14d92a5df94fc66dbd5132a0a6be9c435b4d6680 (diff) |
fix target format for external format-filter-server
According to https://github.com/owncloud/format-filter-server/blob/cc435eac37fb6e67f73fb47d404281c59aa49bd7/code/conversion.js#L17 the target_format should be "odt".
The format-filter-server returns an empty response otherwise.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/converter.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/converter.php b/lib/converter.php index 50fa1f00..d8a7b272 100644 --- a/lib/converter.php +++ b/lib/converter.php @@ -30,7 +30,7 @@ class Converter { public static function checkConnection(){ $expected = file_get_contents(__DIR__ . '/response.odt'); - $converted = self::convertExternal('', 'application/vnd.oasis.opendocument.text'); + $converted = self::convertExternal('', 'odt'); return $converted === $expected; } |