From d7ab182aad492f45cb5ebc4a1b2d99011329e1ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 27 Aug 2018 12:17:25 +0200 Subject: [PATCH] Theming: Only Entity in footer if a url is set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #10024 Signed-off-by: Julius Härtl --- apps/theming/lib/ThemingDefaults.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php index 72286ece4b8f0..1b3b3cb7c8586 100644 --- a/apps/theming/lib/ThemingDefaults.php +++ b/apps/theming/lib/ThemingDefaults.php @@ -151,9 +151,13 @@ public function getPrivacyUrl() { public function getShortFooter() { $slogan = $this->getSlogan(); - $footer = '' .$this->getEntity() . ''. - ($slogan !== '' ? ' – ' . $slogan : ''); + if ($this->getBaseUrl() !== '') { + $footer = '' . $this->getEntity() . ''; + } else { + $footer = $this->getEntity(); + } + $footer .= ($slogan !== '' ? ' – ' . $slogan : ''); $links = [ [