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:
authorCarl Schwan <carl@carlschwan.eu>2022-08-03 16:51:02 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-08-03 16:51:02 +0300
commitba3f5337f356ac51a1b1d012c09f3e4ed6c096e3 (patch)
tree38ee6eef52d2d7d2bd522594c4e33a3d8cae2c59 /apps/theming/lib
parent9475cc02b218f7cab402ec0b2b370ed6c68650c1 (diff)
First first run wizzardfix/firstrunwizzard
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/theming/lib')
-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 c822b3052ce..01b9333d4fd 100644
--- a/apps/theming/lib/Themes/DefaultTheme.php
+++ b/apps/theming/lib/Themes/DefaultTheme.php
@@ -193,17 +193,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';