Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-08-27 13:17:25 +0300
committerJulius Härtl <jus@bitgrid.net>2018-08-27 14:59:16 +0300
commit5175e33e31a45035ad4162aef3c342a277a26894 (patch)
tree4370340272cae79532122a3e1e2da6f4ac94610c /apps/theming
parent8b47f45afa3b7837032d6ce1cfcda1c901ae840f (diff)
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')
-rw-r--r--apps/theming/lib/ThemingDefaults.php10
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 = [
[