Skip to content

Commit

Permalink
Merge pull request #38820 from nextcloud/backport/38811/stable25
Browse files Browse the repository at this point in the history
[stable25] make sure to show download button only one time
  • Loading branch information
szaimen authored Jun 14, 2023
2 parents d79a4fb + 4bcf550 commit 98cbcc0
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 98cbcc0

Please sign in to comment.