Fix default fallback theme on setup ang guests pages

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
pull/32147/head
John Molakvoæ 4 years ago
parent 8bcba22d77
commit 6ec0dfeece
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
  1. 3
      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');
}

Loading…
Cancel
Save