Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Duplicate code removed
Signed-off-by: Sangramsinh Desai <[email protected]>
Signed-off-by: [email protected] <[email protected]>
  • Loading branch information
TSI-sangramdesai authored and backportbot[bot] committed Sep 2, 2021
commit b1190a03f74efed2401f3cfbf284525be7fe6416
15 changes: 1 addition & 14 deletions apps/files_sharing/templates/public.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,7 @@
<?php p($l->t('Download'))?>
</a>
</div>
<?php } ?>
<?php if(isset($_['mimetype'])){ ?>
<?php if (strpos($_['mimetype'], 'image') === 0) { ?>
<div class="directDownload">
<div>
<?php p($l->t('%s', [$_['filename']]))?> (<?php p($_['fileSize']) ?>)
</div>
<a href="<?php p($_['downloadURL']); ?>" id="downloadFile" class="button">
<span class="icon icon-download"></span>
<?php p($l->t('Download'))?>
</a>
</div>
<?php } ?>
<?php } ?>
<?php } ?>
<?php endif; ?>
<?php if ($_['previewURL'] === $_['downloadURL'] && !$_['hideDownload']): ?>
<div class="directDownload">
Expand Down