mirror of
https://github.com/nextcloud/server.git
synced 2026-05-16 10:30:10 -04:00
fix: only skip template initialization when both skeletondirectory and templatedirectory are empty
Signed-off-by: Benjamin Frueh <benjamin.frueh@gmail.com>
This commit is contained in:
parent
cdcd40d58f
commit
bfe5df94dc
2 changed files with 2 additions and 2 deletions
|
|
@ -202,7 +202,7 @@ class ViewController extends Controller {
|
|||
$this->eventDispatcher->dispatchTyped(new LoadViewer());
|
||||
}
|
||||
|
||||
$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_enabled', true);
|
||||
$this->initialState->provideInitialState('templates_path', $this->templateManager->hasTemplateDirectory() ? $this->templateManager->getTemplatePath() : false);
|
||||
$this->initialState->provideInitialState('templates', $this->templateManager->listCreators());
|
||||
|
||||
|
|
|
|||
|
|
@ -334,7 +334,7 @@ class TemplateManager implements ITemplateManager {
|
|||
$isDefaultTemplates = $skeletonTemplatePath === $defaultTemplateDirectory;
|
||||
$userLang = $this->l10nFactory->getUserLanguage($this->userManager->get($this->userId));
|
||||
|
||||
if ($skeletonTemplatePath === '') {
|
||||
if ($path === null && $skeletonTemplatePath === '' && $skeletonPath === '') {
|
||||
$this->setTemplatePath('');
|
||||
return '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue