From 9597036b7280940c834c623de4bb1716cb6fcf4a Mon Sep 17 00:00:00 2001 From: Simon L Date: Thu, 1 Dec 2022 19:39:41 +0100 Subject: [PATCH] delete the --image-background-size variable Signed-off-by: Simon L --- apps/theming/lib/Themes/CommonThemeTrait.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/apps/theming/lib/Themes/CommonThemeTrait.php b/apps/theming/lib/Themes/CommonThemeTrait.php index 18d3fb2d814..0305a95b3d5 100644 --- a/apps/theming/lib/Themes/CommonThemeTrait.php +++ b/apps/theming/lib/Themes/CommonThemeTrait.php @@ -103,13 +103,6 @@ trait CommonThemeTrait { foreach (ImageManager::SUPPORTED_IMAGE_KEYS as $image) { if ($this->imageManager->hasImage($image)) { $imageUrl = $this->imageManager->getImageUrl($image); - if ($image === 'background') { - // If background deleted is set, ignoring variable - if ($backgroundDeleted) { - continue; - } - $variables['--image-background-size'] = 'cover'; - } // --image-background is overridden by user theming $variables["--image-$image"] = "url('" . $imageUrl . "')"; } -- 2.39.5