diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-09-23 15:05:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-23 15:05:47 +0200 |
commit | 15f0674a3cc44a18ec6b38ee0fb3dd076365529f (patch) | |
tree | 4f78987327511ddc526dacdf3d4fda14cfe96b94 /apps | |
parent | 0431ad8a02225ae822b8c28db95a78d01bc7ac4c (diff) | |
parent | b8dbbb177db4af884eab87517a4b36eae6582bb5 (diff) | |
download | nextcloud-server-15f0674a3cc44a18ec6b38ee0fb3dd076365529f.tar.gz nextcloud-server-15f0674a3cc44a18ec6b38ee0fb3dd076365529f.zip |
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.php | 2 |
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") . "')"; } |