aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-06-14 13:40:01 +0200
committerGitHub <noreply@github.com>2023-06-14 13:40:01 +0200
commite4927cd91573de058845bdf2dceedc922f7ca885 (patch)
tree9872f33a49a602263ec3b12ab90f49e1425075db
parente6959bd5eca805f352e9543ec7bd4bc33d057644 (diff)
parent315c7d364631d37f99f92337b342ec20de6e93ee (diff)
downloadnextcloud-server-e4927cd91573de058845bdf2dceedc922f7ca885.tar.gz
nextcloud-server-e4927cd91573de058845bdf2dceedc922f7ca885.zip
Merge pull request #38804 from nextcloud/fix/38798/show-button-only-one-time
make sure to show download button only one time
-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']) ?>)