Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-08-10 23:35:55 +0300
committerGitHub <noreply@github.com>2022-08-10 23:35:55 +0300
commit684cc097f47d6ca818e71a3f9f0a03e41073a031 (patch)
tree24d0838d68f87183a4cfdbf8216c4cc0e4704d01
parent17c2deff76e100b021ebbf5124584b6ba29cf05d (diff)
parentba3f5337f356ac51a1b1d012c09f3e4ed6c096e3 (diff)
Merge pull request #33452 from nextcloud/fix/firstrunwizzard
Fix first run wizzard
-rw-r--r--apps/theming/lib/Themes/DefaultTheme.php17
1 files changed, 8 insertions, 9 deletions
diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php
index 2908d365a4a..df444ebe2d2 100644
--- a/apps/theming/lib/Themes/DefaultTheme.php
+++ b/apps/theming/lib/Themes/DefaultTheme.php
@@ -194,17 +194,16 @@ class DefaultTheme implements ITheme {
// Register image variables only if custom-defined
$backgroundDeleted = $this->config->getAppValue('theming', 'backgroundMime', '') === 'backgroundColor';
foreach(['logo', 'logoheader', 'favicon', 'background'] as $image) {
- if ($this->imageManager->hasImage($image)) {
- // If primary as background has been request, let's not define the background image
- if ($image === 'background' && $backgroundDeleted) {
- $variables["--image-background-plain"] = 'true';
- continue;
- } else if ($image === 'background') {
- $variables['--image-background-size'] = 'cover';
- }
- $variables["--image-$image"] = "url('".$this->imageManager->getImageUrl($image)."')";
+ // If primary as background has been request, let's not define the background image
+ if ($image === 'background' && $backgroundDeleted) {
+ $variables["--image-background-plain"] = 'true';
+ continue;
+ } else if ($image === 'background') {
+ $variables['--image-background-size'] = 'cover';
}
+ $variables["--image-$image"] = "url('".$this->imageManager->getImageUrl($image)."')";
}
+ $variables["--image-login-background"] = $variables["--image-background"];
if ($hasCustomLogoHeader) {
$variables["--image-logoheader-custom"] = 'true';