Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2022-02-18 21:12:19 +0300
committerGitHub <noreply@github.com>2022-02-18 21:12:19 +0300
commitdf808f1af8835628ca6837a420c469f84584f38a (patch)
tree6f1ae3491fe026bf17b3549b1a66d564643bcae7
parentde9e61ab6593533831b69da275427e26f0b529ff (diff)
parentfbb8261a5dae87c6c5ae0b3d3c5109f1d1229f27 (diff)
Merge pull request #31254 from nextcloud/backport/31169/stable22
[stable22] 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; ?>