Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-08-17 15:38:49 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-08-17 15:38:49 +0300
commit6db0348bcd71c40da507af0b5abf4f8395548c82 (patch)
tree40638dd5df167de68de49cfdd23219134679694a /lib
parent24eb77b2fd46fa6d9ebc4ace4cac617318182916 (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.php2
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) {