diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-04-30 13:31:20 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-04-30 13:32:28 +0200 |
commit | 6e79fb60d84505f614ce7cb61c93323b8438af4b (patch) | |
tree | 7ae88ac4f0241bd3c67680ee4dcc421a7a318533 /core/templates/layout.public.php | |
parent | 5b5550dbbaa16f29582f630c7e7a8146daa3c76f (diff) | |
download | nextcloud-server-6e79fb60d84505f614ce7cb61c93323b8438af4b.tar.gz nextcloud-server-6e79fb60d84505f614ce7cb61c93323b8438af4b.zip |
Fix public layout header title & description
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/templates/layout.public.php')
-rw-r--r-- | core/templates/layout.public.php | 16 |
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> |