From 3a607668ccafd65306d314fd958bb80f933f9273 Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Sat, 5 Mar 2016 18:14:16 -0400 Subject: [PATCH] Add template response wopi_url --- controller/documentcontroller.php | 1 + templates/documents.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/controller/documentcontroller.php b/controller/documentcontroller.php index 6a138ae1..23743a64 100644 --- a/controller/documentcontroller.php +++ b/controller/documentcontroller.php @@ -58,6 +58,7 @@ class DocumentController extends Controller{ 'uploadMaxFilesize' => $maxUploadFilesize, 'uploadMaxHumanFilesize' => \OCP\Util::humanFileSize($maxUploadFilesize), 'allowShareWithLink' => $this->settings->getAppValue('core', 'shareapi_allow_links', 'yes'), + 'wopi_url' => $this->settings->getAppValue('richdocuments', 'wopi_url'), ]); $policy = new ContentSecurityPolicy(); diff --git a/templates/documents.php b/templates/documents.php index cd639fda..05dee91a 100644 --- a/templates/documents.php +++ b/templates/documents.php @@ -13,7 +13,7 @@ script('files', 'jquery.fileupload');
  • - + @@ -50,6 +50,7 @@ script('files', 'jquery.fileupload');
  • +