From 054e161eb5f4a5c5c13ee322ae8e93ce66f01b13 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Sun, 26 Mar 2017 19:40:41 +0200 Subject: Manage the right side menu via the navigation manager as well Signed-off-by: Joas Schilling --- apps/files/lib/App.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'apps') 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; } -- cgit v1.2.3