summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-09-27 13:18:26 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-09-27 20:16:08 +0200
commitae1250f422126808691a99de45ec1ae0574678da (patch)
treea8528046f0e02037535dc83c5aa3ee7826b25881 /apps/files_sharing
parentd9842314586c8f19c5c2e763b8e142aa00bd5469 (diff)
downloadnextcloud-server-ae1250f422126808691a99de45ec1ae0574678da.tar.gz
nextcloud-server-ae1250f422126808691a99de45ec1ae0574678da.zip
Compile filesummary handlebars
Fixes #11030 For https://github.com/orgs/nextcloud/projects/18 This template is now compiled so this no longer has to happen in the browser. Another step towards a stricter CSP. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/lib/Controller/ShareController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareController.php b/apps/files_sharing/lib/Controller/ShareController.php
index 6b30747c79f..9057f7abaed 100644
--- a/apps/files_sharing/lib/Controller/ShareController.php
+++ b/apps/files_sharing/lib/Controller/ShareController.php
@@ -60,6 +60,7 @@ use OCA\Files_Sharing\Activity\Providers\Downloads;
use OCP\Files\NotFoundException;
use OCP\Files\IRootFolder;
use OCP\Share\Exceptions\ShareNotFound;
+use OCP\Util;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
use OCP\Share\IManager as ShareManager;
@@ -396,6 +397,7 @@ class ShareController extends AuthPublicShareController {
// JS required for folders
\OCP\Util::addStyle('files', 'merged');
\OCP\Util::addScript('files', 'filesummary');
+ \OCP\Util::addScript('files', 'filesummary_template');
\OCP\Util::addScript('files', 'breadcrumb');
\OCP\Util::addScript('files', 'fileinfomodel');
\OCP\Util::addScript('files', 'newfilemenu');