]> source.dussan.org Git - nextcloud-server.git/commitdiff
delete the --image-background-size variable 35547/head
authorSimon L <szaimen@e.mail.de>
Thu, 1 Dec 2022 18:39:41 +0000 (19:39 +0100)
committerSimon L. (Rebase PR Action) <szaimen@e.mail.de>
Mon, 5 Dec 2022 11:44:19 +0000 (11:44 +0000)
Signed-off-by: Simon L <szaimen@e.mail.de>
apps/theming/lib/Themes/CommonThemeTrait.php

index 18d3fb2d8141c0191dbac4af97685ad6cd62e6f9..0305a95b3d5cc169110f3cb44433865eff3fbe08 100644 (file)
@@ -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 . "')";
                        }