mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
Merge pull request #38631 from nextcloud/theming-set-background-color-via-occ
feat: set background = backgroundColor via occ
This commit is contained in:
commit
fd7d0e2fd2
1 changed files with 5 additions and 0 deletions
|
|
@ -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>');
|
||||
|
|
|
|||
Loading…
Reference in a new issue