Skip to content

Commit b2746f2

Browse files
committed
templateManager: allow using regular document files as templates
As Collabora Online does not support creating templates, allow the user to reuse documents created with richdocuments as templates. Collabora Online supports thoe as templates. Fixes: #5277 Signed-off-by: Méven Car <meven.car@collabora.com>
1 parent b8dc8f1 commit b2746f2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/TemplateManager.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,9 @@ public function getEmptyFileContent(string $extension): string {
506506
public function isSupportedTemplateSource(string $extension): bool {
507507
$supportedExtensions = [
508508
'ott', 'otg', 'otp', 'ots',
509+
'odt', 'odg', 'odp', 'ods',
509510
'dotx', 'xltx', 'potx',
511+
'docx', 'xlsx', 'pptx',
510512
'dot', 'xlt', 'pot',
511513
];
512514
return in_array($extension, $supportedExtensions, true);

0 commit comments

Comments
 (0)