summaryrefslogtreecommitdiffstats
path: root/lib/private/Settings/Manager.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-03-29 17:12:03 +0200
committerJulius Härtl <jus@bitgrid.net>2018-05-03 08:58:22 +0200
commitf2f5371d89f94625416c4a6a42d4e9d9fd06a112 (patch)
tree927fd266622823c2739d6abb2a3ad9b46f5e4710 /lib/private/Settings/Manager.php
parent346e46af49b87aac81f9d923ee7f4f066b2baca2 (diff)
downloadnextcloud-server-f2f5371d89f94625416c4a6a42d4e9d9fd06a112.tar.gz
nextcloud-server-f2f5371d89f94625416c4a6a42d4e9d9fd06a112.zip
Add overview settings section
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Settings/Manager.php')
-rw-r--r--lib/private/Settings/Manager.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/private/Settings/Manager.php b/lib/private/Settings/Manager.php
index 49f699223f6..ebca8e64921 100644
--- a/lib/private/Settings/Manager.php
+++ b/lib/private/Settings/Manager.php
@@ -226,7 +226,8 @@ class Manager implements IManager {
public function getAdminSections(): array {
// built-in sections
$sections = [
- 0 => [new Section('server', $this->l->t('Basic settings'), 0, $this->url->imagePath('settings', 'admin.svg'))],
+ 0 => [new Section('overview', $this->l->t('Overview'), 0, $this->url->imagePath('settings', 'admin.svg'))],
+ 1 => [new Section('server', $this->l->t('Basic settings'), 0, $this->url->imagePath('settings', 'admin.svg'))],
5 => [new Section('sharing', $this->l->t('Sharing'), 0, $this->url->imagePath('core', 'actions/share.svg'))],
10 => [new Section('security', $this->l->t('Security'), 0, $this->url->imagePath('core', 'actions/password.svg'))],
45 => [new Section('encryption', $this->l->t('Encryption'), 0, $this->url->imagePath('core', 'actions/password.svg'))],
@@ -257,13 +258,18 @@ class Manager implements IManager {
private function getBuiltInAdminSettings($section): array {
$forms = [];
- if ($section === 'server') {
+ if ($section === 'overview') {
/** @var ISettings $form */
- $form = new Admin\Server($this->dbc, $this->request, $this->config, $this->lockingProvider, $this->l);
+ $form = new Admin\Overview($this->dbc, $this->request, $this->config, $this->lockingProvider, $this->l);
$forms[$form->getPriority()] = [$form];
$form = new Admin\ServerDevNotice();
$forms[$form->getPriority()] = [$form];
}
+ if ($section === 'server') {
+ /** @var ISettings $form */
+ $form = new Admin\Server($this->dbc, $this->request, $this->config, $this->lockingProvider, $this->l);
+ $forms[$form->getPriority()] = [$form];
+ }
if ($section === 'encryption') {
/** @var ISettings $form */
$form = new Admin\Encryption($this->encryptionManager, $this->userManager);