summaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/ImageManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/theming/lib/ImageManager.php')
-rw-r--r--apps/theming/lib/ImageManager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/theming/lib/ImageManager.php b/apps/theming/lib/ImageManager.php
index 60b695f1c90..560a4c981fe 100644
--- a/apps/theming/lib/ImageManager.php
+++ b/apps/theming/lib/ImageManager.php
@@ -45,6 +45,7 @@ use OCP\ITempManager;
use OCP\IURLGenerator;
class ImageManager {
+ public const SupportedImageKeys = ['background', 'logo', 'logoheader', 'favicon'];
/** @var IConfig */
private $config;
@@ -53,7 +54,6 @@ class ImageManager {
/** @var IURLGenerator */
private $urlGenerator;
/** @var array */
- private $supportedImageKeys = ['background', 'logo', 'logoheader', 'favicon'];
/** @var ICacheFactory */
private $cacheFactory;
/** @var ILogger */
@@ -142,7 +142,7 @@ class ImageManager {
*/
public function getCustomImages(): array {
$images = [];
- foreach ($this->supportedImageKeys as $key) {
+ foreach ($this::SupportedImageKeys as $key) {
$images[$key] = [
'mime' => $this->config->getAppValue('theming', $key . 'Mime', ''),
'url' => $this->getImageUrl($key),