Skip to content

Commit

Permalink
Merge pull request #3115 from nextcloud/bugfix/noid/template-extension
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr authored Aug 23, 2023
2 parents 6649e13 + fd6e2e2 commit 9444862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/TemplateManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ public function formatNodeReturn(File $template) {
'preview' => $this->urlGenerator->linkToRouteAbsolute('richdocuments.templates.getPreview', ['fileId' => $template->getId()]),
'type' => $this->flipTypes()[$template->getMimeType()],
'delete' => $this->urlGenerator->linkToRouteAbsolute('richdocuments.templates.delete', ['fileId' => $template->getId()]),
'extension' => $template->getExtension(),
'extension' => ($ooxml && isset(self::TYPE_EXTENSION_OOXML[$documentType])) ? self::TYPE_EXTENSION_OOXML[$documentType] : self::TYPE_EXTENTION[$documentType],
];
}

Expand Down

0 comments on commit 9444862

Please sign in to comment.