aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/TemplateLayout.php
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2022-04-26 08:50:41 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-04-26 08:50:41 +0200
commit6ec0dfeece3661539fce15708d72a49ddb37cf3c (patch)
tree8b5e6963bf5cb82f2cb8f9206b78049834ab8a68 /lib/private/TemplateLayout.php
parent8bcba22d77cc56433a38be29e66692db94c2081a (diff)
downloadnextcloud-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.php3
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');
}