Browse Source

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

feat: set background = backgroundColor via occ
pull/38655/head
Daniel 2 years ago
committed by GitHub
parent
commit
fd7d0e2fd2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      apps/theming/lib/Command/UpdateConfig.php

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

Loading…
Cancel
Save