summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/controllers
diff options
context:
space:
mode:
authorPiotr Filiciak <piotr@filiciak.pl>2016-05-24 12:34:37 +0200
committerPiotr Filiciak <piotr@filiciak.pl>2016-05-24 12:34:37 +0200
commit11b2e98a30da1cc97d82739600da53fcef765c3f (patch)
treed8a7c412f3c0368c93a7728e2fbbaa86054f0e6c /apps/files_sharing/lib/controllers
parent53437ecced06c5dcff0c2b62b915b6bbf716bccb (diff)
downloadnextcloud-server-11b2e98a30da1cc97d82739600da53fcef765c3f.tar.gz
nextcloud-server-11b2e98a30da1cc97d82739600da53fcef765c3f.zip
video poster
Diffstat (limited to 'apps/files_sharing/lib/controllers')
-rw-r--r--apps/files_sharing/lib/controllers/sharecontroller.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/controllers/sharecontroller.php b/apps/files_sharing/lib/controllers/sharecontroller.php
index 72294f6b26f..de7e7dd7b0c 100644
--- a/apps/files_sharing/lib/controllers/sharecontroller.php
+++ b/apps/files_sharing/lib/controllers/sharecontroller.php
@@ -347,6 +347,8 @@ class ShareController extends Controller {
$shareTmpl['downloadURL'] = $this->urlGenerator->linkToRouteAbsolute('files_sharing.sharecontroller.downloadShare', array('token' => $token));
$shareTmpl['maxSizeAnimateGif'] = $this->config->getSystemValue('max_filesize_animated_gifs_public_sharing', 10);
$shareTmpl['previewEnabled'] = $this->config->getSystemValue('enable_previews', true);
+ $shareTmpl['previewMaxX'] = $this->config->getSystemValue('preview_max_x', 1024);
+ $shareTmpl['previewMaxY'] = $this->config->getSystemValue('preview_max_y', 1024);
$csp = new OCP\AppFramework\Http\ContentSecurityPolicy();
$csp->addAllowedFrameDomain('\'self\'');