Skip to content

Commit

Permalink
Merge pull request #32147 from nextcloud/fix/css-default-load-setup-g…
Browse files Browse the repository at this point in the history
…uest

Fix default fallback theme on setup any guests pages
  • Loading branch information
skjnldsv authored Apr 26, 2022
2 parents ec5d8c7 + 6ec0dfe commit 8a3f8b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/private/TemplateLayout.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ public function __construct($renderAs, $appId = '') {
$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');
}
Expand Down

0 comments on commit 8a3f8b0

Please sign in to comment.