mirror of
https://github.com/nextcloud/richdocuments.git
synced 2025-12-18 05:20:43 +01:00
new blank document template to improve user acceptance
Signed-off-by: Andrew Backhouse <andrew.backhouse@nextcloud.com>
This commit is contained in:
parent
e839f00e7c
commit
bc82e4a970
2 changed files with 1 additions and 1 deletions
Binary file not shown.
|
|
@ -35,7 +35,7 @@ class FileCreatedFromTemplateListener implements IEventListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
$targetFile = $event->getTarget();
|
$targetFile = $event->getTarget();
|
||||||
if (!in_array($targetFile->getMimetype(), Capabilities::MIMETYPES) && $targetFile->getMimeType() !== 'application/pdf') {
|
if (!in_array($targetFile->getMimetype(), array_merge(Capabilities::MIMETYPES, Capabilities::MIMETYPES_MSOFFICE)) && $targetFile->getMimeType() !== 'application/pdf') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue