Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-04-30 14:31:20 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-04-30 14:32:28 +0300
commit6e79fb60d84505f614ce7cb61c93323b8438af4b (patch)
tree7ae88ac4f0241bd3c67680ee4dcc421a7a318533 /core/templates
parent5b5550dbbaa16f29582f630c7e7a8146daa3c76f (diff)
Fix public layout header title & description
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/layout.public.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php
index 73e3e0f0b46..e0445f419c4 100644
--- a/core/templates/layout.public.php
+++ b/core/templates/layout.public.php
@@ -39,17 +39,17 @@
<span id="nextcloud">
<div class="logo logo-icon svg"></div>
<h1 class="header-appname">
- <?php if (isset($template)) {
- p($template->getHeaderTitle());
- } else {
- p($theme->getName());
- } ?>
+ <?php if (isset($template) && $template->getHeaderTitle() !== '') {
+ p($template->getHeaderTitle());
+ } else {
+ p($theme->getName());
+ } ?>
</h1>
+ <?php if (isset($template) && $template->getHeaderDetails() !== '') { ?>
<div class="header-shared-by">
- <?php if (isset($template)) {
- p($template->getHeaderDetails());
- } ?>
+ <?php p($template->getHeaderDetails()); ?>
</div>
+ <?php } ?>
</span>
</div>