diff options
author | Daniel <mail@danielkesselberg.de> | 2023-06-06 15:55:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 15:55:31 +0200 |
commit | fd7d0e2fd2d8e6ed52b41cd782f98a473de21b01 (patch) | |
tree | 7071a9edaf484dc02e505d77c04b72c0bccda300 /apps/theming | |
parent | b05c5e72621317148c1f2612622421b45bb4a66b (diff) | |
parent | 8759e307f28684120be6077e4e0ec41100799062 (diff) | |
download | nextcloud-server-fd7d0e2fd2d8e6ed52b41cd782f98a473de21b01.tar.gz nextcloud-server-fd7d0e2fd2d8e6ed52b41cd782f98a473de21b01.zip |
Merge pull request #38631 from nextcloud/theming-set-background-color-via-occ
feat: set background = backgroundColor via occ
Diffstat (limited to 'apps/theming')
-rw-r--r-- | apps/theming/lib/Command/UpdateConfig.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/theming/lib/Command/UpdateConfig.php b/apps/theming/lib/Command/UpdateConfig.php index aebb6b9be15..de180db6ce9 100644 --- a/apps/theming/lib/Command/UpdateConfig.php +++ b/apps/theming/lib/Command/UpdateConfig.php @@ -111,6 +111,11 @@ class UpdateConfig extends Command { return 0; } + if ($key === 'background' && $value === 'backgroundColor') { + $this->themingDefaults->undo($key); + $key = $key . 'Mime'; + } + if (in_array($key, ImageManager::SUPPORTED_IMAGE_KEYS, true)) { if (!str_starts_with($value, '/')) { $output->writeln('<error>The image file needs to be provided as an absolute path: ' . $value . '.</error>'); |