From 6ec0dfeece3661539fce15708d72a49ddb37cf3c Mon Sep 17 00:00:00 2001 From: John Molakvoæ Date: Tue, 26 Apr 2022 08:50:41 +0200 Subject: Fix default fallback theme on setup ang guests pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- lib/private/TemplateLayout.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/private/TemplateLayout.php') 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'); } -- cgit v1.2.3