diff options
author | Robin Appelman <robin@icewind.nl> | 2019-06-04 15:25:25 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2019-06-17 14:09:09 +0200 |
commit | 615061437422499025e038483504d4ef2004c8e1 (patch) | |
tree | bd8752decea5d8c10fea43bdcdd92c38c26ebf30 /lib/private/Preview/MSOffice2007.php | |
parent | f6ad353c7c1176bcaa167051c9f3e118e69f7a20 (diff) | |
download | nextcloud-server-615061437422499025e038483504d4ef2004c8e1.tar.gz nextcloud-server-615061437422499025e038483504d4ef2004c8e1.zip |
Add new Provider interface for preview providers
the main difference is passing the `File` object to the provider
instead of a `View` + path
Old providers will still continue to work as before
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Preview/MSOffice2007.php')
-rw-r--r-- | lib/private/Preview/MSOffice2007.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Preview/MSOffice2007.php b/lib/private/Preview/MSOffice2007.php index 2e033683c20..0d1177d9de9 100644 --- a/lib/private/Preview/MSOffice2007.php +++ b/lib/private/Preview/MSOffice2007.php @@ -26,7 +26,7 @@ class MSOffice2007 extends Office { /** * {@inheritDoc} */ - public function getMimeType() { + public function getMimeType(): string { return '/application\/vnd.openxmlformats-officedocument.*/'; } } |