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:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-11-09 10:58:58 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-12-20 09:38:45 +0300
commita285ab6119e46de4b9ec8f306ed4ba16ff8487e8 (patch)
treeba8fe8cdd684ff10ee2248f513dc52dd2b7a6e23 /lib/TemplateManager.php
parent2becfd1f9349a82c120b7244f1446f9b57fb40eb (diff)
Preview makes no sense on empty templates
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/TemplateManager.php')
-rw-r--r--lib/TemplateManager.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/TemplateManager.php b/lib/TemplateManager.php
index 90a3d404..47e07b26 100644
--- a/lib/TemplateManager.php
+++ b/lib/TemplateManager.php
@@ -439,7 +439,6 @@ class TemplateManager {
return [
'id' => $template->getId(),
'name' => $this->l->t('Empty'),
- 'preview' => $this->urlGenerator->linkToRouteAbsolute('richdocuments.templates.getPreview', ['fileId' => $template->getId()]),
'type' => $this->flipTypes()[$template->getMimeType()],
];
}