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-01-30 10:23:35 +0000
commit11926bc789af7590a65704f63bc0fcd72963d8e8 (patch)
tree644c308caefab6806bddc55b05a0c205d9e3fdbb
parent378b0f9765af5a2935d3db29620d73f4570a1ee7 (diff)
downloadnextcloud-server-backport/50540/stable31.tar.gz
nextcloud-server-backport/50540/stable31.zip
fix: Only hide template folder creation if default was changed to emptybackport/50540/stable31
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 2c242040731..a0b5c1c282c 100644
--- a/apps/files/lib/Controller/ViewController.php
+++ b/apps/files/lib/Controller/ViewController.php
@@ -194,7 +194,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());