summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2022-02-18 19:12:57 +0100
committerGitHub <noreply@github.com>2022-02-18 19:12:57 +0100
commitade7e90bf9ce2773bc5f71f08c2eacef967a6c54 (patch)
tree83550441c221738a452dba3fb2167cf481403322
parentf69a79ed6c15559cdf68cf3a9d7120f8b4a81671 (diff)
parent4136eed0546b4b4e4ab1215ebf02be89609964fc (diff)
downloadnextcloud-server-ade7e90bf9ce2773bc5f71f08c2eacef967a6c54.tar.gz
nextcloud-server-ade7e90bf9ce2773bc5f71f08c2eacef967a6c54.zip
Merge pull request #31253 from nextcloud/backport/31169/stable23
[stable23] hide download button for images
-rw-r--r--apps/files_sharing/templates/public.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index 33dd6ecd189..889242fded1 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -77,10 +77,12 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
<div>
<?php p($_['filename'])?> (<?php p($_['fileSize']) ?>)
</div>
- <a href="<?php p($_['downloadURL']); ?>" id="downloadFile" class="button">
- <span class="icon icon-download"></span>
- <?php p($l->t('Download'))?>
- </a>
+ <?php if (!$_['hideDownload']) { ?>
+ <a href="<?php p($_['downloadURL']); ?>" id="downloadFile" class="button">
+ <span class="icon icon-download"></span>
+ <?php p($l->t('Download'))?>
+ </a>
+ <?php } ?>
</div>
<?php } ?>
<?php endif; ?>