From 62f1156a56a671cb593c0531922976914b1d4fa9 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 9 May 2018 15:52:41 +0200 Subject: allow to specify a link to a legal notice Signed-off-by: Arthur Schiwon --- apps/theming/lib/Controller/ThemingController.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'apps/theming/lib/Controller/ThemingController.php') diff --git a/apps/theming/lib/Controller/ThemingController.php b/apps/theming/lib/Controller/ThemingController.php index 421af051998..27daf756d48 100644 --- a/apps/theming/lib/Controller/ThemingController.php +++ b/apps/theming/lib/Controller/ThemingController.php @@ -161,6 +161,16 @@ class ThemingController extends Controller { ]); } break; + case 'imprintUrl': + if (strlen($value) > 500) { + return new DataResponse([ + 'data' => [ + 'message' => $this->l10n->t('The given legal notice address is too long'), + ], + 'status' => 'error' + ]); + } + break; case 'slogan': if (strlen($value) > 500) { return new DataResponse([ @@ -406,6 +416,7 @@ class ThemingController extends Controller { url: ' . json_encode($this->themingDefaults->getBaseUrl()) . ', slogan: ' . json_encode($this->themingDefaults->getSlogan()) . ', color: ' . json_encode($this->themingDefaults->getColorPrimary()) . ', + imprintUrl: ' . json_encode($this->themingDefaults->getImprintUrl()) . ', inverted: ' . json_encode($this->util->invertTextColor($this->themingDefaults->getColorPrimary())) . ', cacheBuster: ' . json_encode($cacheBusterValue) . ' }; -- cgit v1.2.3