diff options
author | szaimen <szaimen@e.mail.de> | 2022-03-07 11:07:25 +0100 |
---|---|---|
committer | szaimen <szaimen@e.mail.de> | 2022-08-30 15:46:09 +0200 |
commit | 955b6bb82ea38fa15a4659238b98bfc76cfc4420 (patch) | |
tree | 40d3af8ef6a1f3648e56ac452c9119fa885f7d91 /apps | |
parent | f56ecf92426026c913497bea9f7ca99e8d3ac631 (diff) | |
download | nextcloud-server-955b6bb82ea38fa15a4659238b98bfc76cfc4420.tar.gz nextcloud-server-955b6bb82ea38fa15a4659238b98bfc76cfc4420.zip |
add a way to open the admin settings overview directly
Signed-off-by: szaimen <szaimen@e.mail.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings/lib/Controller/CommonSettingsTrait.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/settings/lib/Controller/CommonSettingsTrait.php b/apps/settings/lib/Controller/CommonSettingsTrait.php index 2eb7b4ccf99..4a15b0c7a32 100644 --- a/apps/settings/lib/Controller/CommonSettingsTrait.php +++ b/apps/settings/lib/Controller/CommonSettingsTrait.php @@ -134,7 +134,12 @@ trait CommonSettingsTrait { } private function getIndexResponse($type, $section) { - $this->navigationManager->setActiveEntry('settings'); + if ($type === 'personal') { + $this->navigationManager->setActiveEntry('settings'); + } elseif ($type === 'admin') { + $this->navigationManager->setActiveEntry('admin_settings'); + } + $templateParams = []; $templateParams = array_merge($templateParams, $this->getNavigationParameters($type, $section)); $templateParams = array_merge($templateParams, $this->getSettings($section)); |