Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2022-04-28 09:54:57 +0300
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-04-28 09:55:46 +0300
commit05d743570a501d3fdeb2dc315800efe9defbf7a9 (patch)
treeea1dcc58c891bc95489fa54d8e3f191f63fdaf46 /lib
parent971e224ce47636e828ee9d2d8003d067bc3da0da (diff)
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.php1
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);