diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-08-27 15:22:49 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-08-27 15:22:49 +0200 |
commit | c4f34ccc4cf3823a0ccfdbad2d20ba20c474ecce (patch) | |
tree | b2e788d88ad20a351602bfe1b757f0a4bdc3e823 /apps/theming/lib | |
parent | 5175e33e31a45035ad4162aef3c342a277a26894 (diff) | |
download | nextcloud-server-c4f34ccc4cf3823a0ccfdbad2d20ba20c474ecce.tar.gz nextcloud-server-c4f34ccc4cf3823a0ccfdbad2d20ba20c474ecce.zip |
Theming: Fix footer tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming/lib')
-rw-r--r-- | apps/theming/lib/ThemingDefaults.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php index 3c7acafd6e9..fe1b1d4c17f 100644 --- a/apps/theming/lib/ThemingDefaults.php +++ b/apps/theming/lib/ThemingDefaults.php @@ -151,8 +151,9 @@ class ThemingDefaults extends \OC_Defaults { public function getShortFooter() { $slogan = $this->getSlogan(); - if ($this->getBaseUrl() !== '') { - $footer = '<a href="' . $this->getBaseUrl() . '" target="_blank"' . + $baseUrl = $this->getBaseUrl(); + if ($baseUrl !== '') { + $footer = '<a href="' . $baseUrl . '" target="_blank"' . ' rel="noreferrer noopener" class="entity-name">' . $this->getEntity() . '</a>'; } else { $footer = '<span class="entity-name">' .$this->getEntity() . '</span>'; |