summaryrefslogtreecommitdiffstats
path: root/settings/Controller/CommonSettingsTrait.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-03-05 17:06:28 +0100
committerJoas Schilling <coding@schilljs.com>2018-03-05 17:06:28 +0100
commit4fa1d9628d102d34372fc94770e9c2cfd1f58a65 (patch)
treed7870bf3b41f68f0c72dac9cfe6ba0a4e01ae4d9 /settings/Controller/CommonSettingsTrait.php
parenta8f56ac8c71aa7854d2018f294eeb2e7e3e4d2eb (diff)
downloadnextcloud-server-4fa1d9628d102d34372fc94770e9c2cfd1f58a65.tar.gz
nextcloud-server-4fa1d9628d102d34372fc94770e9c2cfd1f58a65.zip
Set the correct active navigation entry
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'settings/Controller/CommonSettingsTrait.php')
-rw-r--r--settings/Controller/CommonSettingsTrait.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/settings/Controller/CommonSettingsTrait.php b/settings/Controller/CommonSettingsTrait.php
index 82d675531a8..3d314d9ed53 100644
--- a/settings/Controller/CommonSettingsTrait.php
+++ b/settings/Controller/CommonSettingsTrait.php
@@ -25,6 +25,7 @@
namespace OC\Settings\Controller;
use OCP\AppFramework\Http\TemplateResponse;
+use OCP\INavigationManager;
use OCP\Settings\IManager as ISettingsManager;
use OCP\Settings\IIconSection;
use OCP\Settings\ISettings;
@@ -33,6 +34,9 @@ trait CommonSettingsTrait {
/** @var ISettingsManager */
private $settingsManager;
+ /** @var INavigationManager */
+ private $navigationManager;
+
/**
* @param string $currentSection
* @return array
@@ -116,6 +120,7 @@ trait CommonSettingsTrait {
}
private function getIndexResponse($type, $section) {
+ $this->navigationManager->setActiveEntry('settings');
$templateParams = [];
$templateParams = array_merge($templateParams, $this->getNavigationParameters($type, $section));
$templateParams = array_merge($templateParams, $this->getSettings($section));