summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/templates
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-06-09 16:33:26 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-06-09 17:49:59 +0200
commit7550bf09171a451584a628188db98057c0b30cad (patch)
treedb9bf178ad79a4c4f1fc0a9945a71319b049c242 /apps/files_sharing/templates
parent9d90421e6275199fe9e77a731ded2b09cc29eb3f (diff)
downloadnextcloud-server-7550bf09171a451584a628188db98057c0b30cad.tar.gz
nextcloud-server-7550bf09171a451584a628188db98057c0b30cad.zip
Disable video preview if previews are disabled
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r--apps/files_sharing/templates/public.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index 5a0119747f1..dd0b2eebe21 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -89,7 +89,7 @@ $thumbSize = 1024;
<?php if (isset($_['folder'])): ?>
<?php print_unescaped($_['folder']); ?>
<?php else: ?>
- <?php if (substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'video'): ?>
+ <?php if ($_['previewEnabled'] && substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'video'): ?>
<div id="imgframe">
<video tabindex="0" controls="" preload="none">
<source src="<?php p($_['downloadURL']); ?>" type="<?php p($_['mimetype']); ?>" />