diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-05-02 15:47:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-02 15:47:44 +0300 |
commit | bab5180807840b1a89eb82692b09fd9c5e5c4312 (patch) | |
tree | 211167a6ae31c64f69f217ac648bdc83a3a29323 /lib | |
parent | bb1e87dc8fd2b85d187514e27e2da60bc1c08b3b (diff) | |
parent | ce2ec99d890f1b24b468abbe7ff76fe14d9c567a (diff) |
Nextcloud version bump and code cleanup (#470)
Nextcloud version bump and code cleanup
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Preview/Office.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Preview/Office.php b/lib/Preview/Office.php index a94f8a6c..d80c83cc 100644 --- a/lib/Preview/Office.php +++ b/lib/Preview/Office.php @@ -67,11 +67,7 @@ abstract class Office extends Provider { $options['verify'] = false; } - if (version_compare($this->config->getSystemValue('version'), '14.0.0.0', '<')) { - $options['body'] = new \GuzzleHttp\Post\PostFile($path, $stream); // Since we upgraded guzzle in NC14 we have to do some dark magic here - } else { - $options['multipart'] = [['name' => $path, 'contents' => $stream]]; - } + $options['multipart'] = [['name' => $path, 'contents' => $stream]]; try { $response = $client->post($this->getWopiURL(). '/lool/convert-to/png', $options); |