Browse Source

fix: Only hide template folder creation if default was changed to empty

Signed-off-by: Julius Knorr <jus@bitgrid.net>
pull/53325/head
Julius Knorr 10 months ago
committed by backportbot[bot]
parent
commit
7c535a0f74
  1. 2
      apps/files/lib/Controller/ViewController.php

2
apps/files/lib/Controller/ViewController.php

@ -191,7 +191,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…
Cancel
Save