diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-08-27 12:17:25 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-08-27 13:59:16 +0200 |
commit | 5175e33e31a45035ad4162aef3c342a277a26894 (patch) | |
tree | 4370340272cae79532122a3e1e2da6f4ac94610c /apps/theming/lib | |
parent | 8b47f45afa3b7837032d6ce1cfcda1c901ae840f (diff) | |
download | nextcloud-server-5175e33e31a45035ad4162aef3c342a277a26894.tar.gz nextcloud-server-5175e33e31a45035ad4162aef3c342a277a26894.zip |
Theming: Only Entity in footer if a url is set
fixes #10024
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming/lib')
-rw-r--r-- | apps/theming/lib/ThemingDefaults.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php index 72286ece4b8..3c7acafd6e9 100644 --- a/apps/theming/lib/ThemingDefaults.php +++ b/apps/theming/lib/ThemingDefaults.php @@ -151,9 +151,13 @@ class ThemingDefaults extends \OC_Defaults { 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" class="entity-name">' . $this->getEntity() . '</a>'; + } else { + $footer = '<span class="entity-name">' .$this->getEntity() . '</span>'; + } + $footer .= ($slogan !== '' ? ' – ' . $slogan : ''); $links = [ [ |