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
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-09-23 16:05:47 +0300
committerGitHub <noreply@github.com>2022-09-23 16:05:47 +0300
commit15f0674a3cc44a18ec6b38ee0fb3dd076365529f (patch)
tree4f78987327511ddc526dacdf3d4fda14cfe96b94 /apps
parent0431ad8a02225ae822b8c28db95a78d01bc7ac4c (diff)
parentb8dbbb177db4af884eab87517a4b36eae6582bb5 (diff)
Merge pull request #34212 from nextcloud/bugfix/34211/fix-getbackground-route
Fix loading custom background
Diffstat (limited to 'apps')
-rw-r--r--apps/theming/lib/Themes/DefaultTheme.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php
index 0fe1e8ff691..145461a901a 100644
--- a/apps/theming/lib/Themes/DefaultTheme.php
+++ b/apps/theming/lib/Themes/DefaultTheme.php
@@ -245,7 +245,7 @@ class DefaultTheme implements ITheme {
$themingBackground = $this->config->getUserValue($user->getUID(), Application::APP_ID, 'background', 'default');
if ($themingBackground === 'custom') {
- $variables['--image-main-background'] = "url('" . $this->urlGenerator->linkToRouteAbsolute('theming.theming.getBackground') . "')";
+ $variables['--image-main-background'] = "url('" . $this->urlGenerator->linkToRouteAbsolute('theming.userTheme.getBackground') . "')";
} elseif ($themingBackground !== 'default' && substr($themingBackground, 0, 1) !== '#') {
$variables['--image-main-background'] = "url('" . $this->urlGenerator->linkTo(Application::APP_ID, "/img/background/$themingBackground") . "')";
}