aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/Command/UpdateConfig.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/theming/lib/Command/UpdateConfig.php')
-rw-r--r--apps/theming/lib/Command/UpdateConfig.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/theming/lib/Command/UpdateConfig.php b/apps/theming/lib/Command/UpdateConfig.php
index c327c92492f..58dfcff8a8e 100644
--- a/apps/theming/lib/Command/UpdateConfig.php
+++ b/apps/theming/lib/Command/UpdateConfig.php
@@ -36,10 +36,6 @@ class UpdateConfig extends Command {
'name', 'url', 'imprintUrl', 'privacyUrl', 'slogan', 'color', 'disable-user-theming'
];
- public const SUPPORTED_IMAGE_KEYS = [
- 'background', 'logo', 'favicon', 'logoheader'
- ];
-
private $themingDefaults;
private $imageManager;
private $config;
@@ -87,14 +83,14 @@ class UpdateConfig extends Command {
$value = $this->config->getAppValue('theming', $key, '');
$output->writeln('- ' . $key . ': ' . $value . '');
}
- foreach (self::SUPPORTED_IMAGE_KEYS as $key) {
+ foreach (ImageManager::SUPPORTED_IMAGE_KEYS as $key) {
$value = $this->config->getAppValue('theming', $key . 'Mime', '');
$output->writeln('- ' . $key . ': ' . $value . '');
}
return 0;
}
- if (!in_array($key, self::SUPPORTED_KEYS, true) && !in_array($key, self::SUPPORTED_IMAGE_KEYS, true)) {
+ if (!in_array($key, self::SUPPORTED_KEYS, true) && !in_array($key, ImageManager::SUPPORTED_IMAGE_KEYS, true)) {
$output->writeln('<error>Invalid config key provided</error>');
return 1;
}
@@ -115,7 +111,7 @@ class UpdateConfig extends Command {
return 0;
}
- if (in_array($key, self::SUPPORTED_IMAGE_KEYS, true)) {
+ 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>');
return 1;