summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files/appinfo/app.php1
-rw-r--r--core/templates/filetemplates/template.html9
-rw-r--r--lib/private/Files/Type/TemplateManager.php5
-rw-r--r--lib/private/legacy/helper.php1
4 files changed, 6 insertions, 10 deletions
diff --git a/apps/files/appinfo/app.php b/apps/files/appinfo/app.php
index dfff7f6f464..fb03b982815 100644
--- a/apps/files/appinfo/app.php
+++ b/apps/files/appinfo/app.php
@@ -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
index f16e80cb7ef..00000000000
--- a/core/templates/filetemplates/template.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
-
- </head>
- <body>
-
- </body>
-</html>
diff --git a/lib/private/Files/Type/TemplateManager.php b/lib/private/Files/Type/TemplateManager.php
index 8b30eb6b4e8..08c4593bf87 100644
--- a/lib/private/Files/Type/TemplateManager.php
+++ b/lib/private/Files/Type/TemplateManager.php
@@ -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
*/
diff --git a/lib/private/legacy/helper.php b/lib/private/legacy/helper.php
index a5ed3a3e24b..6faba3ebee2 100644
--- a/lib/private/legacy/helper.php
+++ b/lib/private/legacy/helper.php
@@ -189,6 +189,7 @@ class OC_Helper {
}
/**
+ * @deprecated 18.0.0
* @return \OC\Files\Type\TemplateManager
*/
static public function getFileTemplateManager() {