diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-04-28 08:54:57 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-04-28 08:55:46 +0200 |
commit | 05d743570a501d3fdeb2dc315800efe9defbf7a9 (patch) | |
tree | ea1dcc58c891bc95489fa54d8e3f191f63fdaf46 /lib | |
parent | 971e224ce47636e828ee9d2d8003d067bc3da0da (diff) | |
download | nextcloud-server-05d743570a501d3fdeb2dc315800efe9defbf7a9.tar.gz nextcloud-server-05d743570a501d3fdeb2dc315800efe9defbf7a9.zip |
Fix `Undefined array key "enabledThemes"` on layout.user.php
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/TemplateLayout.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index e2ac89dafc4..a25e23e9fc6 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -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); |