mirror of
https://github.com/nextcloud/server.git
synced 2026-03-23 10:54:41 -04:00
Merge pull request #41995 from nextcloud/fix/template-manager-templatedirectory-empty
fix(TemplateManager): Bail early if templatedirectory is empty
This commit is contained in:
commit
1066f7e6e2
1 changed files with 5 additions and 0 deletions
|
|
@ -275,6 +275,11 @@ class TemplateManager implements ITemplateManager {
|
|||
$isDefaultTemplates = $skeletonTemplatePath === $defaultTemplateDirectory;
|
||||
$userLang = $this->l10nFactory->getUserLanguage($this->userManager->get($this->userId));
|
||||
|
||||
if ($skeletonTemplatePath === '') {
|
||||
$this->setTemplatePath('');
|
||||
return '';
|
||||
}
|
||||
|
||||
try {
|
||||
$l10n = $this->l10nFactory->get('lib', $userLang);
|
||||
$userFolder = $this->rootFolder->getUserFolder($this->userId);
|
||||
|
|
|
|||
Loading…
Reference in a new issue