From 6ae84ff682c1fb1605387ef5f0aa7f01d181514f Mon Sep 17 00:00:00 2001 From: aaukt Date: Mon, 13 Oct 2014 00:09:44 +0200 Subject: [PATCH] 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. --- lib/converter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }