Merge pull request #42002 from nextcloud/backport/41995/stable27

This commit is contained in:
Julius Härtl 2023-12-04 12:50:32 +01:00 committed by GitHub
commit 913c7038ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -274,6 +274,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);