mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
Fix Undefined array key "enabledThemes" on layout.user.php
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
This commit is contained in:
parent
971e224ce4
commit
05d743570a
1 changed files with 1 additions and 0 deletions
|
|
@ -107,6 +107,7 @@ class TemplateLayout extends \OC_Template {
|
|||
Util::addScript('core', 'unified-search', 'core');
|
||||
|
||||
// Set body data-theme
|
||||
$this->assign('enabledThemes', []);
|
||||
if (\OC::$server->getAppManager()->isEnabledForUser('theming') && class_exists('\OCA\Theming\Service\ThemesService')) {
|
||||
/** @var \OCA\Theming\Service\ThemesService */
|
||||
$themesService = \OC::$server->get(\OCA\Theming\Service\ThemesService::class);
|
||||
|
|
|
|||
Loading…
Reference in a new issue