mirror of
https://github.com/nextcloud/server.git
synced 2026-07-15 13:01:34 -04:00
Merge pull request #32147 from nextcloud/fix/css-default-load-setup-guest
Fix default fallback theme on setup any guests pages
This commit is contained in:
commit
8a3f8b07a8
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue