Skip to content

Commit 684cc09

Browse files
authored
Merge pull request #33452 from nextcloud/fix/firstrunwizzard
Fix first run wizzard
2 parents 17c2def + ba3f533 commit 684cc09

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

apps/theming/lib/Themes/DefaultTheme.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -194,17 +194,16 @@ public function getCSSVariables(): array {
194194
// Register image variables only if custom-defined
195195
$backgroundDeleted = $this->config->getAppValue('theming', 'backgroundMime', '') === 'backgroundColor';
196196
foreach(['logo', 'logoheader', 'favicon', 'background'] as $image) {
197-
if ($this->imageManager->hasImage($image)) {
198-
// If primary as background has been request, let's not define the background image
199-
if ($image === 'background' && $backgroundDeleted) {
200-
$variables["--image-background-plain"] = 'true';
201-
continue;
202-
} else if ($image === 'background') {
203-
$variables['--image-background-size'] = 'cover';
204-
}
205-
$variables["--image-$image"] = "url('".$this->imageManager->getImageUrl($image)."')";
197+
// If primary as background has been request, let's not define the background image
198+
if ($image === 'background' && $backgroundDeleted) {
199+
$variables["--image-background-plain"] = 'true';
200+
continue;
201+
} else if ($image === 'background') {
202+
$variables['--image-background-size'] = 'cover';
206203
}
204+
$variables["--image-$image"] = "url('".$this->imageManager->getImageUrl($image)."')";
207205
}
206+
$variables["--image-login-background"] = $variables["--image-background"];
208207

209208
if ($hasCustomLogoHeader) {
210209
$variables["--image-logoheader-custom"] = 'true';

0 commit comments

Comments
 (0)