Skip to content

Commit

Permalink
fix: Revert change of extension which should refer to the new file ex…
Browse files Browse the repository at this point in the history
…tension

Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr authored and backportbot-nextcloud[bot] committed Aug 23, 2023
1 parent 5cfc949 commit 3484edd
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 3484edd

Please sign in to comment.