]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add app config for default template path 35759/head
authorThomas Citharel <tcit@tcit.fr>
Tue, 13 Dec 2022 17:31:39 +0000 (18:31 +0100)
committerJulius Härtl (Rebase PR Action) <github@juliushaertl.de>
Tue, 24 Jan 2023 09:39:31 +0000 (09:39 +0000)
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
lib/private/Files/Template/TemplateManager.php

index dde224e5eadb1c59dea1be3782eb92cb3d21b006..4603c14278f759fab743198a4fe3921893c6a422 100644 (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) {