mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Fix default fallback theme on setup ang guests pages
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
This commit is contained in:
parent
8bcba22d77
commit
6ec0dfeece
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