Skip to content

Commit

Permalink
Add app config for default template path
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
  • Loading branch information
tcitworld committed Dec 13, 2022
1 parent 8a1a32f commit 004d59d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Template/TemplateManager.php
Expand Up @@ -277,7 +277,7 @@ public function initializeTemplateDirectory(string $path = null, string $userId
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) {
Expand Down

0 comments on commit 004d59d

Please sign in to comment.