]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow to specify the id 4077/head
authorJoas Schilling <coding@schilljs.com>
Sun, 26 Mar 2017 21:07:54 +0000 (23:07 +0200)
committerJoas Schilling <coding@schilljs.com>
Sun, 26 Mar 2017 21:07:54 +0000 (23:07 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/NavigationManager.php

index 7465daef3591837a8241b38a2a570813eab8d8d8..300c24ff940e9b0e7a86eade3e826320fc67d5bb 100644 (file)
@@ -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,