diff options
author | Julius Knorr <jus@bitgrid.net> | 2025-01-29 15:30:34 +0100 |
---|---|---|
committer | Julius Knorr <jus@bitgrid.net> | 2025-01-30 08:23:36 +0100 |
commit | be11c03fa0c6fe744506f2064100ff64cb261ab1 (patch) | |
tree | 9950b021e11e250efc1354e1bf10a3cda699cf9b /apps/files/lib/Controller | |
parent | fce58d82fe13c507ecba2b1d447179a8b130a18a (diff) | |
download | nextcloud-server-be11c03fa0c6fe744506f2064100ff64cb261ab1.tar.gz nextcloud-server-be11c03fa0c6fe744506f2064100ff64cb261ab1.zip |
fix: Only hide template folder creation if default was changed to emptyfix/show-templates-folder-default
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Diffstat (limited to 'apps/files/lib/Controller')
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 2 |
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()); |