diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-08-17 15:38:49 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-08-17 15:38:49 +0300 |
commit | 6db0348bcd71c40da507af0b5abf4f8395548c82 (patch) | |
tree | 40638dd5df167de68de49cfdd23219134679694a /lib | |
parent | 24eb77b2fd46fa6d9ebc4ace4cac617318182916 (diff) |
Allow creation of OOXML docs if app not in default location
Fixes #118
In case the apps folder is not /apps (the docker container for example).
The template manager will not work with that path then obviously. This
makes sure the path can always be found.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/DocumentController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/DocumentController.php b/lib/Controller/DocumentController.php index 51cc2a29..17c164af 100644 --- a/lib/Controller/DocumentController.php +++ b/lib/Controller/DocumentController.php @@ -355,7 +355,7 @@ class DocumentController extends Controller { } if (!$content){ - $content = file_get_contents(dirname(__DIR__) . self::ODT_TEMPLATE_PATH); + $content = file_get_contents(dirname(dirname(__DIR__)) . self::ODT_TEMPLATE_PATH); } if ($content) { |