diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-03-25 18:59:15 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-03-25 18:59:15 +0300 |
commit | a803105fab1547c5fa7b55e8a9fb703e9aa9e0b7 (patch) | |
tree | 5d11598d63b1f0f0576d70d0e32d7e916fab83f0 /lib/TemplateManager.php | |
parent | 319910d9bdd0ffc5e170f7e02a6b279d9c72d422 (diff) |
Allow MS Office template file extensions for TemplateSource usagebugfix/2108
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/TemplateManager.php')
-rw-r--r-- | lib/TemplateManager.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/TemplateManager.php b/lib/TemplateManager.php index f32b31ed..798b5164 100644 --- a/lib/TemplateManager.php +++ b/lib/TemplateManager.php @@ -524,7 +524,11 @@ class TemplateManager { } public function isSupportedTemplateSource(string $extension): bool { - $supportedExtensions = ['ott', 'otg', 'otp', 'ots']; + $supportedExtensions = [ + 'ott', 'otg', 'otp', 'ots', + 'dotx', 'xltx', 'potx', + 'dot', 'xlt', 'pot', + ]; return in_array($extension, $supportedExtensions, true); } |