Skip to content

Commit

Permalink
Merge pull request #38811 from nextcloud/backport/38804/stable27
Browse files Browse the repository at this point in the history
[stable27] make sure to show download button only one time
  • Loading branch information
szaimen committed Jun 14, 2023
2 parents dfc2888 + 9f53338 commit c615681
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/files_sharing/templates/public.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<?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']) ?>)
Expand All @@ -74,8 +74,7 @@
</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']) ?>)
Expand Down

0 comments on commit c615681

Please sign in to comment.