diff options
author | sangramsinh.desai@t-systems.com <sangramsinh.desai@t-systems.com> | 2021-09-01 16:22:06 +0300 |
---|---|---|
committer | sangramsinh.desai@t-systems.com <sangramsinh.desai@t-systems.com> | 2021-09-02 07:18:49 +0300 |
commit | bc6b496f4cfee10b00b073cfac03ffc0244fc6d1 (patch) | |
tree | 6de4f443242dab46a415753442fc418aa7bc51c9 /apps/files_sharing/templates | |
parent | 86558878e4c5de384024d543b6ff239425a87cd4 (diff) |
Duplicate code removed
Signed-off-by: Sangramsinh Desai <sangramsinh.desai@t-systems.com>
Signed-off-by: sangramsinh.desai@t-systems.com <sangramsinh.desai@t-systems.com>
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r-- | apps/files_sharing/templates/public.php | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 279a4cb87e9..e301b41c319 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -82,20 +82,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size); <?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"> |