diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-09-23 11:19:38 +0200 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2022-09-23 11:19:38 +0200 |
commit | b8dbbb177db4af884eab87517a4b36eae6582bb5 (patch) | |
tree | d861d65b86b86d495a095ba9683eeaba981bdb4f | |
parent | ac1c7397a1e4cc90a909f76a1f99f210cf94bd30 (diff) | |
download | nextcloud-server-b8dbbb177db4af884eab87517a4b36eae6582bb5.tar.gz nextcloud-server-b8dbbb177db4af884eab87517a4b36eae6582bb5.zip |
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>
-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") . "')"; } |