Skip to content

Commit be11c03

Browse files
committed
fix: Only hide template folder creation if default was changed to empty
Signed-off-by: Julius Knorr <[email protected]>
1 parent fce58d8 commit be11c03

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)