Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoraaukt <aaukt@users.noreply.github.com>2014-10-13 02:09:44 +0400
committeraaukt <aaukt@users.noreply.github.com>2014-10-13 02:09:44 +0400
commit6ae84ff682c1fb1605387ef5f0aa7f01d181514f (patch)
treef6360e3ecfc9ad10bf96fdd6811ca8b03a6fd9f6 /lib
parent14d92a5df94fc66dbd5132a0a6be9c435b4d6680 (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.php2
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;
}