mirror of
https://github.com/nextcloud/server.git
synced 2026-03-19 09:05:01 -04:00
Fix loading custom background
Fix the route for loading the custom background. Because the controller is UserThemeController, so the route path is not "theming" but "userTheme". Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
parent
ac1c7397a1
commit
b8dbbb177d
1 changed files with 1 additions and 1 deletions
|
|
@ -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") . "')";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue