diff options
Diffstat (limited to 'apps/files_sharing/templates/public.php')
-rw-r--r-- | apps/files_sharing/templates/public.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 109eaf2e9da..7620d309ff6 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -27,6 +27,7 @@ <input type="hidden" name="mimetypeIcon" value="<?php p(\OC::$server->getMimeTypeDetector()->mimeTypeIcon($_['mimetype'])); ?>" id="mimetypeIcon"> <input type="hidden" name="hideDownload" value="<?php p($_['hideDownload'] ? 'true' : 'false'); ?>" id="hideDownload"> <input type="hidden" id="disclaimerText" value="<?php p($_['disclaimer']) ?>"> + <?php $upload_max_filesize = OC::$server->get(\bantu\IniGetWrapper\IniGetWrapper::class)->getBytes('upload_max_filesize'); $post_max_size = OC::$server->get(\bantu\IniGetWrapper\IniGetWrapper::class)->getBytes('post_max_size'); @@ -102,14 +103,11 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size); class="emptycontent <?php if (!empty($_['note'])) { ?>has-note<?php } ?>"> <?php if ($_['shareOwner']) { ?> <div id="displayavatar"><div class="avatardiv"></div></div> - <h2><?php p($l->t('Upload files to %s', [$_['shareOwner']])) ?></h2> - <p><span class="icon-folder"></span> <?php p($_['filename']) ?></p> - <?php } else if ($_['label']) { ?> - <div id="displayavatar"><span class="icon-folder"></span></div> - <h2><?php p($l->t('Upload files to %s', [$_['label']])) ?></h2> - <?php } else{ ?> + <h2><?php p($l->t('Upload files to %s', [$_['label'] ?: $_['filename']])) ?></h2> + <p><?php p($l->t('%s shared a folder with you.', [$_['shareOwner']])) ?></p> + <?php } else { ?> <div id="displayavatar"><span class="icon-folder"></span></div> - <h2><?php p($l->t('Upload files to %s', [$_['filename']])) ?></h2> + <h2><?php p($l->t('Upload files to %s', [$_['label'] ?: $_['filename']])) ?></h2> <?php } ?> <?php if (empty($_['note']) === false) { ?> |