diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2022-04-26 10:49:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-26 10:49:08 +0300 |
commit | 8a3f8b07a8b8b4f7dd618ddc42d2d4698d30a31a (patch) | |
tree | d6f0f10fdf6dcba1b25fa03bf584d14840063ab3 /lib | |
parent | ec5d8c72e14726273d467803ab6b60ad9109b512 (diff) | |
parent | 6ec0dfeece3661539fce15708d72a49ddb37cf3c (diff) |
Merge pull request #32147 from nextcloud/fix/css-default-load-setup-guest
Fix default fallback theme on setup any guests pages
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/TemplateLayout.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index 4b53af37679..e2ac89dafc4 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -82,7 +82,8 @@ class TemplateLayout extends \OC_Template { $this->initialState = \OC::$server->get(IInitialStateService::class); // Add fallback theming variables if theming is disabled - if (!\OC::$server->getAppManager()->isEnabledForUser('theming')) { + if ($renderAs !== TemplateResponse::RENDER_AS_USER + || !\OC::$server->getAppManager()->isEnabledForUser('theming')) { // TODO cache generated default theme if enabled for fallback if server is erroring ? Util::addStyle('theming', 'default'); } |