mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Add app config for default template path
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
f867a2d65e
commit
00d9d49303
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue