From dcdebbae00a2bfed9b0969b0138c1b2693ce6df2 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 5 Feb 2019 21:22:37 +0100 Subject: Use the proper old templates else creating a new file leads to a non saveable template on 3.x collabora Signed-off-by: Roeland Jago Douma --- appinfo/app.php | 6 +++--- assets/template.odp | Bin 0 -> 13090 bytes assets/template.ods | Bin 0 -> 7134 bytes assets/template.odt | Bin 0 -> 7938 bytes 4 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 assets/template.odp create mode 100644 assets/template.ods create mode 100644 assets/template.odt diff --git a/appinfo/app.php b/appinfo/app.php index cfecd257..b996505e 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -58,9 +58,9 @@ if (class_exists('\OC\Files\Type\TemplateManager')) { $manager->registerTemplate('application/vnd.openxmlformats-officedocument.wordprocessingml.document', dirname(__DIR__) . '/assets/docxtemplate.docx'); $manager->registerTemplate('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', dirname(__DIR__) . '/assets/xlsxtemplate.xlsx'); $manager->registerTemplate('application/vnd.openxmlformats-officedocument.presentationml.presentation', dirname(__DIR__) . '/assets/pptxtemplate.pptx'); - $manager->registerTemplate('application/vnd.oasis.opendocument.presentation', dirname(__DIR__) . '/assets/presentation.otp'); - $manager->registerTemplate('application/vnd.oasis.opendocument.text', dirname(__DIR__) . '/assets/document.ott'); - $manager->registerTemplate('application/vnd.oasis.opendocument.spreadsheet', dirname(__DIR__) . '/assets/spreadsheet.ots'); + $manager->registerTemplate('application/vnd.oasis.opendocument.presentation', dirname(__DIR__) . '/assets/template.odp'); + $manager->registerTemplate('application/vnd.oasis.opendocument.text', dirname(__DIR__) . '/assets/template.odt'); + $manager->registerTemplate('application/vnd.oasis.opendocument.spreadsheet', dirname(__DIR__) . '/assets/template.ods'); } diff --git a/assets/template.odp b/assets/template.odp new file mode 100644 index 00000000..3800a491 Binary files /dev/null and b/assets/template.odp differ diff --git a/assets/template.ods b/assets/template.ods new file mode 100644 index 00000000..998ea21b Binary files /dev/null and b/assets/template.ods differ diff --git a/assets/template.odt b/assets/template.odt new file mode 100644 index 00000000..4717040f Binary files /dev/null and b/assets/template.odt differ -- cgit v1.2.3