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:
authorVincent Petry <vincent@nextcloud.com>2022-09-14 12:24:11 +0300
committerVincent Petry <vincent@nextcloud.com>2022-09-14 16:05:35 +0300
commitda01494a372c5b780ee76807325001afd1190b11 (patch)
tree41192ee5a919603534df3fea65750ffc0ff17a99 /apps/settings/lib/Controller
parent7ea015f0d199e8637392921ea5938394f9b78e73 (diff)
Add accessibility entry in user menu
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/settings/lib/Controller')
-rw-r--r--apps/settings/lib/Controller/CommonSettingsTrait.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/settings/lib/Controller/CommonSettingsTrait.php b/apps/settings/lib/Controller/CommonSettingsTrait.php
index 942d07154c4..d5d004d8722 100644
--- a/apps/settings/lib/Controller/CommonSettingsTrait.php
+++ b/apps/settings/lib/Controller/CommonSettingsTrait.php
@@ -135,7 +135,11 @@ trait CommonSettingsTrait {
private function getIndexResponse(string $type, string $section): TemplateResponse {
if ($type === 'personal') {
- $this->navigationManager->setActiveEntry('settings');
+ if ($section === 'theming') {
+ $this->navigationManager->setActiveEntry('accessibility_settings');
+ } else {
+ $this->navigationManager->setActiveEntry('settings');
+ }
} elseif ($type === 'admin') {
$this->navigationManager->setActiveEntry('admin_settings');
}