aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Template
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2022-12-13 18:31:39 +0100
committerJulius Härtl (Rebase PR Action) <github@juliushaertl.de>2023-01-24 09:39:31 +0000
commit00d9d493032f28673a0c8be6f799faa0d52a191f (patch)
tree69cb101b1a8124213d68bdd0caf9c8bf73ba908b /lib/private/Files/Template
parentf867a2d65e825800d6bf1b685659677f6136ac5f (diff)
downloadnextcloud-server-00d9d493032f28673a0c8be6f799faa0d52a191f.tar.gz
nextcloud-server-00d9d493032f28673a0c8be6f799faa0d52a191f.zip
Add app config for default template path
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'lib/private/Files/Template')
-rw-r--r--lib/private/Files/Template/TemplateManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Template/TemplateManager.php b/lib/private/Files/Template/TemplateManager.php
index dde224e5ead..4603c14278f 100644
--- a/lib/private/Files/Template/TemplateManager.php
+++ b/lib/private/Files/Template/TemplateManager.php
@@ -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) {