diff options
author | Joas Schilling <coding@schilljs.com> | 2017-03-26 20:37:39 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-03-26 20:37:39 +0200 |
commit | 7cc5130e8262b8e42df0c2a017cddcca2b6d8c85 (patch) | |
tree | 77d4e2657f950709e5356b275c97237ad4af2193 | |
parent | 433958e2e38f4d6935f695e482e80693dc0ffeb9 (diff) | |
download | nextcloud-server-7cc5130e8262b8e42df0c2a017cddcca2b6d8c85.tar.gz nextcloud-server-7cc5130e8262b8e42df0c2a017cddcca2b6d8c85.zip |
Allow apps to register a setting via info.xml
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/private/NavigationManager.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php index 0b1f43d7de9..439e49909d0 100644 --- a/lib/private/NavigationManager.php +++ b/lib/private/NavigationManager.php @@ -258,6 +258,7 @@ class NavigationManager implements INavigationManager { } $l = $this->l10nFac->get($app); $order = isset($nav['order']) ? $nav['order'] : 100; + $type = isset($nav['type']) ? $nav['type'] : 'link'; $route = $this->urlGenerator->linkToRoute($nav['route']); $icon = isset($nav['icon']) ? $nav['icon'] : 'app.svg'; foreach ([$icon, "$app.svg"] as $i) { @@ -277,6 +278,7 @@ class NavigationManager implements INavigationManager { 'order' => $order, 'href' => $route, 'icon' => $icon, + 'type' => $type, 'name' => $l->t($nav['name']), ]); } |