Browse Source

Add app config for default template path

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
pull/35759/head
Thomas Citharel 4 years ago
committed by Julius Härtl (Rebase PR Action)
parent
commit
00d9d49303
  1. 2
      lib/private/Files/Template/TemplateManager.php

2
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) {

Loading…
Cancel
Save