aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-06-14 11:30:04 +0200
committerSimon L <szaimen@e.mail.de>2023-06-14 11:39:49 +0200
commit315c7d364631d37f99f92337b342ec20de6e93ee (patch)
tree6431dc3fb32bbedaa026655459059186b8b6e2e9 /apps/files_sharing
parentc12a64fa526cc6c575eeb3acdf3e8713e853c32f (diff)
downloadnextcloud-server-315c7d364631d37f99f92337b342ec20de6e93ee.tar.gz
nextcloud-server-315c7d364631d37f99f92337b342ec20de6e93ee.zip
make sure to show download button only one time
Signed-off-by: Simon L <szaimen@e.mail.de>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/templates/public.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index 510a8d04e04..9c1b3dbbab2 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -62,7 +62,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
<?php else: ?>
<!-- preview frame to open file in with viewer -->
<div id="imgframe"></div>
- <?php if (isset($_['mimetype']) && str_starts_with($_['mimetype'], 'image')) { ?>
+ <?php if (isset($_['mimetype']) && str_starts_with($_['mimetype'], 'image')): ?>
<div class="directDownload">
<div>
<?php p($_['filename'])?> (<?php p($_['fileSize']) ?>)
@@ -74,8 +74,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
</a>
<?php } ?>
</div>
- <?php } ?>
- <?php if ($_['previewURL'] === $_['downloadURL'] && !$_['hideDownload']): ?>
+ <?php elseif ($_['previewURL'] === $_['downloadURL'] && !$_['hideDownload']): ?>
<div class="directDownload">
<div>
<?php p($_['filename'])?>&nbsp;(<?php p($_['fileSize']) ?>)