mirror of
https://github.com/nextcloud/server.git
synced 2026-03-24 19:33:49 -04:00
Merge pull request #50540 from nextcloud/fix/show-templates-folder-default
fix: Only hide template folder creation if default was changed to empty
This commit is contained in:
commit
8604389ebe
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue