diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-04-26 08:50:41 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-04-26 08:50:41 +0200 |
commit | 6ec0dfeece3661539fce15708d72a49ddb37cf3c (patch) | |
tree | 8b5e6963bf5cb82f2cb8f9206b78049834ab8a68 /lib/private/TemplateLayout.php | |
parent | 8bcba22d77cc56433a38be29e66692db94c2081a (diff) | |
download | nextcloud-server-6ec0dfeece3661539fce15708d72a49ddb37cf3c.tar.gz nextcloud-server-6ec0dfeece3661539fce15708d72a49ddb37cf3c.zip |
Fix default fallback theme on setup ang guests pages
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/private/TemplateLayout.php')
-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'); } |