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');
  • +