mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
feat: set background = backgroundColor via occ
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
2188505837
commit
8759e307f2
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 (strpos($value, '/') !== 0) {
|
||||
$output->writeln('<error>The image file needs to be provided as an absolute path: ' . $value . '.</error>');
|
||||
|
|
|
|||
Loading…
Reference in a new issue