diff options
author | Joas Schilling <coding@schilljs.com> | 2017-03-26 23:07:54 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-03-26 23:07:54 +0200 |
commit | 8d3c461151ad9515772609059063f5bdf5a32bf3 (patch) | |
tree | 489435f46d817db370f410da1364b4d1d1f97a54 /lib/private/NavigationManager.php | |
parent | 918f6fd10b2837cc684cf1e0c8a773716fe7d9a3 (diff) | |
download | nextcloud-server-8d3c461151ad9515772609059063f5bdf5a32bf3.tar.gz nextcloud-server-8d3c461151ad9515772609059063f5bdf5a32bf3.zip |
Allow to specify the id
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/NavigationManager.php')
-rw-r--r-- | lib/private/NavigationManager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php index 7465daef359..300c24ff940 100644 --- a/lib/private/NavigationManager.php +++ b/lib/private/NavigationManager.php @@ -246,6 +246,7 @@ class NavigationManager implements INavigationManager { continue; } $l = $this->l10nFac->get($app); + $id = isset($nav['id']) ? $nav['id'] : $app; $order = isset($nav['order']) ? $nav['order'] : 100; $type = isset($nav['type']) ? $nav['type'] : 'link'; $route = $this->urlGenerator->linkToRoute($nav['route']); @@ -263,7 +264,7 @@ class NavigationManager implements INavigationManager { } $this->add([ - 'id' => $app, + 'id' => $id, 'order' => $order, 'href' => $route, 'icon' => $icon, |