mirror of
https://github.com/nextcloud/server.git
synced 2025-10-26 19:21:34 +00: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
@ -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 New Issue
Block a user