diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-11-18 16:35:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-18 16:35:13 +0300 |
commit | 80b1312144b2b84b1c45848ac84ea8dc11066158 (patch) | |
tree | 3c54dfa9c937eefdeaecfc405ea44fa77168b906 /lib | |
parent | 24611fa8c7d45084a5b3ead94b2a0e9f1e5c1fa8 (diff) | |
parent | 2a716bea15bf6ec417d4532e4fda9ed79354ee84 (diff) |
Merge pull request #1257 from nextcloud/enh/get_folder_in_1_step
Try to obtain the appdata folder in 1 go
Diffstat (limited to 'lib')
-rw-r--r-- | lib/TemplateManager.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/TemplateManager.php b/lib/TemplateManager.php index 2c5e33bb..5edd0d16 100644 --- a/lib/TemplateManager.php +++ b/lib/TemplateManager.php @@ -424,18 +424,16 @@ class TemplateManager { * @return Folder */ private function getSystemTemplateDir() { - return $this->rootFolder->get('appdata_' . $this->config->getSystemValue('instanceid', null)) - ->get('richdocuments') - ->get('templates'); + $path = 'appdata_' . $this->config->getSystemValue('instanceid', null) . '/richdocuments/templates'; + return $this->rootFolder->get($path); } /** * @return Folder */ private function getEmptyTemplateDir() { - return $this->rootFolder->get('appdata_' . $this->config->getSystemValue('instanceid', null)) - ->get('richdocuments') - ->get('empty_templates'); + $path = 'appdata_' . $this->config->getSystemValue('instanceid', null) . '/richdocuments/empty_templates'; + return $this->rootFolder->get($path); } /** |