diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-09-27 13:18:26 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-09-27 20:16:08 +0200 |
commit | ae1250f422126808691a99de45ec1ae0574678da (patch) | |
tree | a8528046f0e02037535dc83c5aa3ee7826b25881 /apps/files_sharing | |
parent | d9842314586c8f19c5c2e763b8e142aa00bd5469 (diff) | |
download | nextcloud-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.php | 2 |
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'); |