Merge pull request #38631 from nextcloud/theming-set-background-color-via-occ

feat: set background = backgroundColor via occ
This commit is contained in:
Daniel 2023-06-06 15:55:31 +02:00 committed by GitHub
commit fd7d0e2fd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>');