Skip to content

Commit 8604389

Browse files
authored
Merge pull request #50540 from nextcloud/fix/show-templates-folder-default
fix: Only hide template folder creation if default was changed to empty
2 parents 2a0a6b6 + be11c03 commit 8604389

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
@@ -194,7 +194,7 @@ public function index($dir = '', $view = '', $fileid = null, $fileNotFound = fal
194194
$this->eventDispatcher->dispatchTyped(new LoadViewer());
195195
}
196196

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

0 commit comments

Comments
 (0)