summaryrefslogtreecommitdiffstats
path: root/apps/files/lib/App.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/lib/App.php')
-rw-r--r--apps/files/lib/App.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/files/lib/App.php b/apps/files/lib/App.php
index add27a2d2df..34d3ab4384c 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->clear(false);
}
return self::$navigationManager;
}