mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix(TemplateManager): Bail early if templatedirectory is empty
fixes #39266 Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
df7bc46eab
commit
062a0efed5
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