aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2024-03-13 16:05:14 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2024-03-13 16:05:14 +0100
commit1f2d267443f71f1b571c2f5266b8b06cd24b5f0c (patch)
treeb83a46ad817c8a10f886eff2c235cb13e86c8362
parent4bda299541c198d832ff7a70be58a01505abbd6d (diff)
downloadnextcloud-server-1f2d267443f71f1b571c2f5266b8b06cd24b5f0c.tar.gz
nextcloud-server-1f2d267443f71f1b571c2f5266b8b06cd24b5f0c.zip
fix(Navigation): ensure NavManager is inited when adding an entry
otherwise custom order cannot be applied Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--lib/private/NavigationManager.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php
index cac52ab5c9f..0ce2b3124b2 100644
--- a/lib/private/NavigationManager.php
+++ b/lib/private/NavigationManager.php
@@ -94,6 +94,7 @@ class NavigationManager implements INavigationManager {
$this->closureEntries[] = $entry;
return;
}
+ $this->init();
$id = $entry['id'];
@@ -236,10 +237,6 @@ class NavigationManager implements INavigationManager {
]);
}
- if ($this->appManager === 'null') {
- return;
- }
-
$this->defaultApp = $this->appManager->getDefaultAppForUser($this->userSession->getUser(), false);
if ($this->userSession->isLoggedIn()) {