diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2016-08-12 17:08:32 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2016-08-12 17:08:32 +0200 |
commit | 90e58b7fb3aae0db4d5017a93e04e37387c4fb30 (patch) | |
tree | 4869b03b1eb22d38ef1ee157021796fc5adb6ae2 /settings/templates/admin | |
parent | 0fdf801c25c6a983c367e9c8be79c81c58df980b (diff) | |
download | nextcloud-server-90e58b7fb3aae0db4d5017a93e04e37387c4fb30.tar.gz nextcloud-server-90e58b7fb3aae0db4d5017a93e04e37387c4fb30.zip |
mark current section
Diffstat (limited to 'settings/templates/admin')
-rw-r--r-- | settings/templates/admin/frame.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/settings/templates/admin/frame.php b/settings/templates/admin/frame.php index e0fee1555a3..1d9f6dc7a78 100644 --- a/settings/templates/admin/frame.php +++ b/settings/templates/admin/frame.php @@ -36,7 +36,8 @@ vendor_style('select2/select2'); if (isset($form['anchor'])) { $anchor = \OC::$server->getURLGenerator()->linkToRoute('settings.AdminSettings.index', ['section' => $form['anchor']]); $sectionName = $form['section-name']; - print_unescaped(sprintf("<li><a href='%s'>%s</a></li>", \OCP\Util::sanitizeHTML($anchor), \OCP\Util::sanitizeHTML($sectionName))); + $active = $form['active'] ? ' class="active"' : ''; + print_unescaped(sprintf("<li%s><a href='%s'>%s</a></li>", $active, \OCP\Util::sanitizeHTML($anchor), \OCP\Util::sanitizeHTML($sectionName))); } }?> </ul> |