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 11:31:07 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-12-20 09:38:45 +0300
commitb756bc03969d47568c6b156c3bb6a8b0e0cb7401 (patch)
tree2bb77040c5a73d9d971b97b27649ad7c299cb07c /lib/TemplateManager.php
parent1059dffd21ca15ace48be92480595e887dd80e21 (diff)
Rename to ext to extension
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/TemplateManager.php')
-rw-r--r--lib/TemplateManager.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/TemplateManager.php b/lib/TemplateManager.php
index d2f60cee..c152be16 100644
--- a/lib/TemplateManager.php
+++ b/lib/TemplateManager.php
@@ -416,12 +416,12 @@ class TemplateManager {
*/
public function formatNodeReturn(File $template) {
return [
- 'id' => $template->getId(),
- 'name' => $template->getName(),
- 'preview' => $this->urlGenerator->linkToRouteAbsolute('richdocuments.templates.getPreview', ['fileId' => $template->getId()]),
- 'type' => $this->flipTypes()[$template->getMimeType()],
- 'delete' => $this->urlGenerator->linkToRouteAbsolute('richdocuments.templates.delete', ['fileId' => $template->getId()]),
- 'ext' => self::TYPE_EXTENTION[$this->flipTypes()[$template->getMimeType()]],
+ 'id' => $template->getId(),
+ 'name' => $template->getName(),
+ 'preview' => $this->urlGenerator->linkToRouteAbsolute('richdocuments.templates.getPreview', ['fileId' => $template->getId()]),
+ 'type' => $this->flipTypes()[$template->getMimeType()],
+ 'delete' => $this->urlGenerator->linkToRouteAbsolute('richdocuments.templates.delete', ['fileId' => $template->getId()]),
+ 'extension' => self::TYPE_EXTENTION[$this->flipTypes()[$template->getMimeType()]],
];
}
@@ -443,10 +443,10 @@ class TemplateManager {
public function formatEmpty(File $template) {
return [
- 'id' => $template->getId(),
- 'name' => $this->l->t('Empty'),
- 'type' => $this->flipTypes()[$template->getMimeType()],
- 'ext' => self::TYPE_EXTENTION[$this->flipTypes()[$template->getMimeType()]],
+ 'id' => $template->getId(),
+ 'name' => $this->l->t('Empty'),
+ 'type' => $this->flipTypes()[$template->getMimeType()],
+ 'extension' => self::TYPE_EXTENTION[$this->flipTypes()[$template->getMimeType()]],
];
}
}