diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-05-17 22:16:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-17 22:16:03 +0300 |
commit | 9236c20a28dd9558d1577ebfd7c7ea9202ca70bb (patch) | |
tree | e6d84fdcbbde8af5bae264db7f58a5a833c7c78e /apps/theming/lib/Controller | |
parent | 8696651cfb0370bc6b1e4bcc70ffd4fa1d2b65bd (diff) | |
parent | feff9f5bd1f776ade18ec8e196553730ef408a54 (diff) |
Merge pull request #9437 from nextcloud/feature/noid/imprint
allow to specify a link to a legal notice
Diffstat (limited to 'apps/theming/lib/Controller')
-rw-r--r-- | apps/theming/lib/Controller/ThemingController.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/theming/lib/Controller/ThemingController.php b/apps/theming/lib/Controller/ThemingController.php index e4a8f0b5036..dd7bf4bb04d 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([ @@ -408,6 +418,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) . ' }; |