Skip to content

Commit d7ab182

Browse files
committed
Theming: Only Entity in footer if a url is set
fixes #10024 Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 8b47f45 commit d7ab182

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

apps/theming/lib/ThemingDefaults.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,13 @@ public function getPrivacyUrl() {
151151

152152
public function getShortFooter() {
153153
$slogan = $this->getSlogan();
154-
$footer = '<a href="'. $this->getBaseUrl() . '" target="_blank"' .
155-
' rel="noreferrer noopener">' .$this->getEntity() . '</a>'.
156-
($slogan !== '' ? '' . $slogan : '');
154+
if ($this->getBaseUrl() !== '') {
155+
$footer = '<a href="' . $this->getBaseUrl() . '" target="_blank"' .
156+
' rel="noreferrer noopener">' . $this->getEntity() . '</a>';
157+
} else {
158+
$footer = $this->getEntity();
159+
}
160+
$footer .= ($slogan !== '' ? '' . $slogan : '');
157161

158162
$links = [
159163
[

0 commit comments

Comments
 (0)