From b8dbbb177db4af884eab87517a4b36eae6582bb5 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 23 Sep 2022 11:19:38 +0200 Subject: [PATCH] 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 --- apps/theming/lib/Themes/DefaultTheme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") . "')"; }