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:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2022-08-16 09:30:08 +0300
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-08-16 09:30:08 +0300
commit4c6be330ef927c2f9881fc54b2e090ec254f3af6 (patch)
treecad79633d86509745545e47b4fda4acb29159a66
parente6feca6d1559efaaf5ba31d5c24c4a436c0ccf5f (diff)
Revert "First first run wizzard"
This reverts commit ba3f5337f356ac51a1b1d012c09f3e4ed6c096e3.
-rw-r--r--apps/theming/lib/Themes/DefaultTheme.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php
index d327b7db6d4..6158d79a224 100644
--- a/apps/theming/lib/Themes/DefaultTheme.php
+++ b/apps/theming/lib/Themes/DefaultTheme.php
@@ -193,16 +193,17 @@ class DefaultTheme implements ITheme {
$backgroundDeleted = $this->config->getAppValue('theming', 'backgroundMime', '') === 'backgroundColor';
foreach(['logo', 'logoheader', 'favicon', 'background'] as $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';
+ 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)."')";
}
- $variables["--image-$image"] = "url('".$this->imageManager->getImageUrl($image)."')";
}
- $variables["--image-login-background"] = $variables["--image-background"];
if ($hasCustomLogoHeader) {
$variables["--image-logoheader-custom"] = 'true';