summaryrefslogtreecommitdiffstats
path: root/apps/theming/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-05-24 15:21:35 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-05-24 23:39:50 +0200
commit0847c98aaf659a9e9ce966952820d096d3ec1f0c (patch)
treee0f764ae31ec9c5a034cb080f614e1c1610ee3f4 /apps/theming/lib
parent16c061818eceb2d5356030cfa620d256e7a8b284 (diff)
downloadnextcloud-server-0847c98aaf659a9e9ce966952820d096d3ec1f0c.tar.gz
nextcloud-server-0847c98aaf659a9e9ce966952820d096d3ec1f0c.zip
addjust footer height when legal links are present. fixes #9572
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/theming/lib')
-rw-r--r--apps/theming/lib/ThemingDefaults.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php
index b61179b681e..00c47676bc8 100644
--- a/apps/theming/lib/ThemingDefaults.php
+++ b/apps/theming/lib/ThemingDefaults.php
@@ -142,11 +142,11 @@ class ThemingDefaults extends \OC_Defaults {
}
public function getImprintUrl() {
- return $this->config->getAppValue('theming', 'imprintUrl', '');
+ return (string)$this->config->getAppValue('theming', 'imprintUrl', '');
}
public function getPrivacyUrl() {
- return $this->config->getAppValue('theming', 'privacyUrl', '');
+ return (string)$this->config->getAppValue('theming', 'privacyUrl', '');
}
public function getShortFooter() {
@@ -287,6 +287,12 @@ class ThemingDefaults extends \OC_Defaults {
if ($this->config->getAppValue('theming', 'backgroundMime', null) === 'backgroundColor') {
$variables['image-login-plain'] = 'true';
}
+
+ $variables['has-legal-links'] = 'false';
+ if($this->getImprintUrl() !== '' || $this->getPrivacyUrl() !== '') {
+ $variables['has-legal-links'] = 'true';
+ }
+
$cache->set('getScssVariables', $variables);
return $variables;
}