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:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-18 20:10:06 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-12-20 09:38:43 +0300
commitc680b535c970a46a29d0d4ccd670014b54b98f65 (patch)
tree40e77746faf5304ef146698a28476184f497276b /lib/TemplateManager.php
parentec9a21184695b99033ad70bceca892c1d1518560 (diff)
Add template js handler and comments
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/TemplateManager.php')
-rw-r--r--lib/TemplateManager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/TemplateManager.php b/lib/TemplateManager.php
index 92ff8bbd..754cdb4b 100644
--- a/lib/TemplateManager.php
+++ b/lib/TemplateManager.php
@@ -174,13 +174,13 @@ class TemplateManager {
public function delete(string $templateName) {
try {
$template = $this->folder->getFile($templateName);
- // $template->delete();
+ $template->delete();
return 1;
} catch (NotFoundException $e) {
$templateDir = $this->getUserTemplateDir();
try {
$templateFile = $templateDir->get($templateName);
- // $templateFile->delete();
+ $templateFile->delete();
return 2;
} catch (NotFoundException $e) {
throw new NotFoundException($e);