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
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2021-01-25 22:48:01 +0300
committerGitHub <noreply@github.com>2021-01-25 22:48:01 +0300
commita1a1771a26d0c6ce5c0e0734e8c99ec0c26ce11c (patch)
tree6eae5cbcd254964f50cf982c58f4b89eb3c31f70
parentc6df3d9694c78a23ca67e91dda372ec0b3e4ffe0 (diff)
parentc5bc01f27f93e33bbe2c17b20c1e75b0786ee7f4 (diff)
Merge pull request #25309 from nextcloud/enh/dashboard-default-layout
Add config to specify a default dashboard layout
-rw-r--r--apps/dashboard/lib/Controller/DashboardController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dashboard/lib/Controller/DashboardController.php b/apps/dashboard/lib/Controller/DashboardController.php
index bc6cd02abbc..63508f28c83 100644
--- a/apps/dashboard/lib/Controller/DashboardController.php
+++ b/apps/dashboard/lib/Controller/DashboardController.php
@@ -99,7 +99,8 @@ class DashboardController extends Controller {
$this->eventDispatcher->dispatchTyped(new RegisterWidgetEvent($this->dashboardManager));
- $userLayout = explode(',', $this->config->getUserValue($this->userId, 'dashboard', 'layout', 'recommendations,spreed,mail,calendar'));
+ $systemDefault = $this->config->getAppValue('dashboard', 'layout', 'recommendations,spreed,mail,calendar');
+ $userLayout = explode(',', $this->config->getUserValue($this->userId, 'dashboard', 'layout', $systemDefault));
$widgets = array_map(function (IWidget $widget) {
return [
'id' => $widget->getId(),