Skip to content

Commit

Permalink
Merge pull request #38818 from nextcloud/backport/38811/stable26
Browse files Browse the repository at this point in the history
[stable26] make sure to show download button only one time
  • Loading branch information
szaimen authored Jun 14, 2023
2 parents 6fb44c7 + 806a114 commit 1226328
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 1226328

Please sign in to comment.