Skip to content

Commit 56cb88d

Browse files
authored
Merge pull request #53325 from nextcloud/backport/50540/stable30
[stable30] fix: Only hide template folder creation if default was changed to empty
2 parents 460dd27 + 7c535a0 commit 56cb88d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files/lib/Controller/ViewController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public function index($dir = '', $view = '', $fileid = null) {
191191
$this->eventDispatcher->dispatchTyped(new LoadViewer());
192192
}
193193

194-
$this->initialState->provideInitialState('templates_enabled', ($this->config->getSystemValueString('skeletondirectory', '') !== '') || ($this->config->getSystemValueString('templatedirectory', '') !== ''));
194+
$this->initialState->provideInitialState('templates_enabled', ($this->config->getSystemValueString('skeletondirectory', \OC::$SERVERROOT . '/core/skeleton') !== '') || ($this->config->getSystemValueString('templatedirectory', \OC::$SERVERROOT . '/core/skeleton/Templates') !== ''));
195195
$this->initialState->provideInitialState('templates_path', $this->templateManager->hasTemplateDirectory() ? $this->templateManager->getTemplatePath() : false);
196196
$this->initialState->provideInitialState('templates', $this->templateManager->listCreators());
197197

0 commit comments

Comments
 (0)