Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-07-25 20:04:11 +0300
committerJulius Härtl <jus@bitgrid.net>2022-08-02 16:21:35 +0300
commitb33e6a6d4b9f54608323c5f941e9804908bb1d92 (patch)
tree156f3b3615c511d410c40be64bd0face16d73793
parent1af61c23e746a6654eebf519f12384fb230d0858 (diff)
Remove unused registration with deprecated template managertechdept/cleanup-template-manager
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--lib/AppInfo/Application.php11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php
index 970e85f6..8263e3a1 100644
--- a/lib/AppInfo/Application.php
+++ b/lib/AppInfo/Application.php
@@ -130,17 +130,6 @@ class Application extends App implements IBootstrap {
});
});
- if (class_exists('\OC\Files\Type\TemplateManager')) {
- $manager = \OC_Helper::getFileTemplateManager();
-
- $manager->registerTemplate('application/vnd.openxmlformats-officedocument.wordprocessingml.document', dirname(__DIR__) . '/emptyTemplates/docxtemplate.docx');
- $manager->registerTemplate('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', dirname(__DIR__) . '/emptyTemplates/xlsxtemplate.xlsx');
- $manager->registerTemplate('application/vnd.openxmlformats-officedocument.presentationml.presentation', dirname(__DIR__) . '/emptyTemplates/pptxtemplate.pptx');
- $manager->registerTemplate('application/vnd.oasis.opendocument.presentation', dirname(__DIR__) . '/emptyTemplates/template.odp');
- $manager->registerTemplate('application/vnd.oasis.opendocument.text', dirname(__DIR__) . '/emptyTemplates/template.odt');
- $manager->registerTemplate('application/vnd.oasis.opendocument.spreadsheet', dirname(__DIR__) . '/emptyTemplates/template.ods');
- }
-
$this->registerProvider();
$this->checkAndEnableCODEServer();
}