Merge pull request #35759 from nextcloud/add-app-config-for-default-template-path

This commit is contained in:
Julius Härtl 2023-01-25 12:35:24 +01:00 committed by GitHub
commit a249c633a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -277,7 +277,7 @@ class TemplateManager implements ITemplateManager {
try {
$l10n = $this->l10nFactory->get('lib', $userLang);
$userFolder = $this->rootFolder->getUserFolder($this->userId);
$userTemplatePath = $path ?? $l10n->t('Templates') . '/';
$userTemplatePath = $path ?? $this->config->getAppValue('core', 'defaultTemplateDirectory', $l10n->t('Templates')) . '/';
// Initial user setup without a provided path
if ($path === null) {