aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Knorr <jus@bitgrid.net>2025-01-29 15:30:34 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-06-04 15:06:29 +0000
commit7c535a0f742de5d8425474e5fa8b78452eb3cda2 (patch)
tree5c64b7265c2f93a3c7144ee3de3e96d9c8219bd2
parent460dd27b079a3e8a74e0a8a2e14a1fc6ddb9ed1b (diff)
downloadnextcloud-server-backport/50540/stable30.tar.gz
nextcloud-server-backport/50540/stable30.zip
fix: Only hide template folder creation if default was changed to emptybackport/50540/stable30
Signed-off-by: Julius Knorr <jus@bitgrid.net>
-rw-r--r--apps/files/lib/Controller/ViewController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php
index 70ead0a5fe2..8ecb6825bf5 100644
--- a/apps/files/lib/Controller/ViewController.php
+++ b/apps/files/lib/Controller/ViewController.php
@@ -191,7 +191,7 @@ class ViewController extends Controller {
$this->eventDispatcher->dispatchTyped(new LoadViewer());
}
- $this->initialState->provideInitialState('templates_enabled', ($this->config->getSystemValueString('skeletondirectory', '') !== '') || ($this->config->getSystemValueString('templatedirectory', '') !== ''));
+ $this->initialState->provideInitialState('templates_enabled', ($this->config->getSystemValueString('skeletondirectory', \OC::$SERVERROOT . '/core/skeleton') !== '') || ($this->config->getSystemValueString('templatedirectory', \OC::$SERVERROOT . '/core/skeleton/Templates') !== ''));
$this->initialState->provideInitialState('templates_path', $this->templateManager->hasTemplateDirectory() ? $this->templateManager->getTemplatePath() : false);
$this->initialState->provideInitialState('templates', $this->templateManager->listCreators());