diff options
author | Joas Schilling <coding@schilljs.com> | 2017-03-26 19:40:41 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-03-26 19:40:41 +0200 |
commit | 054e161eb5f4a5c5c13ee322ae8e93ce66f01b13 (patch) | |
tree | 1633a3b70ba9309e737b422da6878f5299c7d1dd /apps | |
parent | ec330c7ac4d7d3a145dc06414e5707243f1057d7 (diff) | |
download | nextcloud-server-054e161eb5f4a5c5c13ee322ae8e93ce66f01b13.tar.gz nextcloud-server-054e161eb5f4a5c5c13ee322ae8e93ce66f01b13.zip |
Manage the right side menu via the navigation manager as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/lib/App.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/files/lib/App.php b/apps/files/lib/App.php index add27a2d2df..1aba2a53ef7 100644 --- a/apps/files/lib/App.php +++ b/apps/files/lib/App.php @@ -40,7 +40,15 @@ class App { public static function getNavigationManager() { // TODO: move this into a service in the Application class if (self::$navigationManager === null) { - self::$navigationManager = new \OC\NavigationManager(); + self::$navigationManager = new \OC\NavigationManager( + \OC::$server->getAppManager(), + \OC::$server->getURLGenerator(), + \OC::$server->getL10NFactory(), + \OC::$server->getUserSession(), + \OC::$server->getGroupManager(), + \OC::$server->getConfig() + ); + self::$navigationManager->noDefaultLinks(); } return self::$navigationManager; } |