]> source.dussan.org Git - nextcloud-server.git/commitdiff
Deprecate TemplateManager 17559/head
authorJulius Härtl <jus@bitgrid.net>
Wed, 16 Oct 2019 07:54:17 +0000 (09:54 +0200)
committerJulius Härtl <jus@bitgrid.net>
Wed, 16 Oct 2019 07:54:17 +0000 (09:54 +0200)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/files/appinfo/app.php
core/templates/filetemplates/template.html [deleted file]
lib/private/Files/Type/TemplateManager.php
lib/private/legacy/helper.php

index dfff7f6f464d310047acbd6d4ba94123daa278e3..fb03b98281560b112ffa1c2894e4c84b86840865 100644 (file)
@@ -34,7 +34,6 @@ $l = \OC::$server->getL10N('files');
 \OC::$server->getSearch()->registerProvider(File::class, array('apps' => array('files')));
 
 $templateManager = \OC_Helper::getFileTemplateManager();
-$templateManager->registerTemplate('text/html', 'core/templates/filetemplates/template.html');
 $templateManager->registerTemplate('application/vnd.oasis.opendocument.presentation', 'core/templates/filetemplates/template.odp');
 $templateManager->registerTemplate('application/vnd.oasis.opendocument.text', 'core/templates/filetemplates/template.odt');
 $templateManager->registerTemplate('application/vnd.oasis.opendocument.spreadsheet', 'core/templates/filetemplates/template.ods');
diff --git a/core/templates/filetemplates/template.html b/core/templates/filetemplates/template.html
deleted file mode 100644 (file)
index f16e80c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<!DOCTYPE html>
-<html>
-       <head>
-
-       </head>
-       <body>
-
-       </body>
-</html>
index 8b30eb6b4e815373502eaba162bede15cbf32d92..08c4593bf87acb8930a245552c32c19979bbc5eb 100644 (file)
@@ -24,6 +24,9 @@
 
 namespace OC\Files\Type;
 
+/**
+ * @deprecated 18.0.0
+ */
 class TemplateManager {
        protected $templates = array();
 
@@ -34,6 +37,7 @@ class TemplateManager {
        /**
         * get the path of the template for a mimetype
         *
+        * @deprecated 18.0.0
         * @param string $mimetype
         * @return string|null
         */
@@ -48,6 +52,7 @@ class TemplateManager {
        /**
         * get the template content for a mimetype
         *
+        * @deprecated 18.0.0
         * @param string $mimetype
         * @return string
         */
index a5ed3a3e24b2e0a86457c757e0c4c0f1bfa65d39..6faba3ebee2942b12fad231f3e353ba061890070 100644 (file)
@@ -189,6 +189,7 @@ class OC_Helper {
        }
 
        /**
+        * @deprecated 18.0.0
         * @return \OC\Files\Type\TemplateManager
         */
        static public function getFileTemplateManager() {