diff options
author | Simon L <szaimen@e.mail.de> | 2023-06-14 11:30:04 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-06-14 15:04:35 +0000 |
commit | 806a114f2bd9d00661bdfe4a094b694fd4e46058 (patch) | |
tree | bcfa578ea2ab392a7c05a6999db2eb697c6c74d0 /apps | |
parent | 6fb44c75c56e2e522745624c7d3d238c85e3afdd (diff) | |
download | nextcloud-server-806a114f2bd9d00661bdfe4a094b694fd4e46058.tar.gz nextcloud-server-806a114f2bd9d00661bdfe4a094b694fd4e46058.zip |
make sure to show download button only one time
Signed-off-by: Simon L <szaimen@e.mail.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/templates/public.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index abb3b195bc6..39c41fc90f4 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']) && strpos($_['mimetype'], 'image') === 0) { ?> + <?php if (isset($_['mimetype']) && strpos($_['mimetype'], 'image') === 0): ?> <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'])?> (<?php p($_['fileSize']) ?>) |