Skip to content

Commit 1226328

Browse files
authored
Merge pull request #38818 from nextcloud/backport/38811/stable26
[stable26] make sure to show download button only one time
2 parents 6fb44c7 + 806a114 commit 1226328

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

apps/files_sharing/templates/public.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<?php else: ?>
6363
<!-- preview frame to open file in with viewer -->
6464
<div id="imgframe"></div>
65-
<?php if (isset($_['mimetype']) && strpos($_['mimetype'], 'image') === 0) { ?>
65+
<?php if (isset($_['mimetype']) && strpos($_['mimetype'], 'image') === 0): ?>
6666
<div class="directDownload">
6767
<div>
6868
<?php p($_['filename'])?> (<?php p($_['fileSize']) ?>)
@@ -74,8 +74,7 @@
7474
</a>
7575
<?php } ?>
7676
</div>
77-
<?php } ?>
78-
<?php if ($_['previewURL'] === $_['downloadURL'] && !$_['hideDownload']): ?>
77+
<?php elseif ($_['previewURL'] === $_['downloadURL'] && !$_['hideDownload']): ?>
7978
<div class="directDownload">
8079
<div>
8180
<?php p($_['filename'])?>&nbsp;(<?php p($_['fileSize']) ?>)

0 commit comments

Comments
 (0)