summaryrefslogtreecommitdiffstats
path: root/apps/theming/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-08-27 15:22:49 +0200
committerJulius Härtl <jus@bitgrid.net>2018-08-27 15:22:49 +0200
commitc4f34ccc4cf3823a0ccfdbad2d20ba20c474ecce (patch)
treeb2e788d88ad20a351602bfe1b757f0a4bdc3e823 /apps/theming/lib
parent5175e33e31a45035ad4162aef3c342a277a26894 (diff)
downloadnextcloud-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.php5
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>';