Skip to content

Commit

Permalink
Theming: Only Entity in footer if a url is set
Browse files Browse the repository at this point in the history
fixes #10024

Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Aug 27, 2018
1 parent 8b47f45 commit d7ab182
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions apps/theming/lib/ThemingDefaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,13 @@ public function getPrivacyUrl() {

public function getShortFooter() {
$slogan = $this->getSlogan();
$footer = '<a href="'. $this->getBaseUrl() . '" target="_blank"' .
' rel="noreferrer noopener">' .$this->getEntity() . '</a>'.
($slogan !== '' ? '' . $slogan : '');
if ($this->getBaseUrl() !== '') {
$footer = '<a href="' . $this->getBaseUrl() . '" target="_blank"' .
' rel="noreferrer noopener">' . $this->getEntity() . '</a>';
} else {
$footer = $this->getEntity();
}
$footer .= ($slogan !== '' ? '' . $slogan : '');

$links = [
[
Expand Down

0 comments on commit d7ab182

Please sign in to comment.