Skip to content

Commit

Permalink
Merge pull request #35759 from nextcloud/add-app-config-for-default-t…
Browse files Browse the repository at this point in the history
…emplate-path
  • Loading branch information
juliushaertl committed Jan 25, 2023
2 parents d51429a + 00d9d49 commit a249c63
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 a249c63

Please sign in to comment.