summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-02-09 08:42:27 +0100
committerJulius Härtl <jus@bitgrid.net>2018-02-12 17:22:33 +0100
commitada5aed35ee23048f7a02c9cd4e554600998124a (patch)
treedc29ae78b2b8565828669fc61877114bc8d15317 /settings
parent39529851a8899496b1a3c08ac37d6ad73f80ec50 (diff)
downloadnextcloud-server-ada5aed35ee23048f7a02c9cd4e554600998124a.tar.gz
nextcloud-server-ada5aed35ee23048f7a02c9cd4e554600998124a.zip
Deprecate static methods and use Navigation manager
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'settings')
-rw-r--r--settings/ajax/navigationdetect.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/ajax/navigationdetect.php b/settings/ajax/navigationdetect.php
index 167f819f91e..043e10da559 100644
--- a/settings/ajax/navigationdetect.php
+++ b/settings/ajax/navigationdetect.php
@@ -23,6 +23,6 @@
OC_Util::checkAdminUser();
OCP\JSON::callCheck();
-$navigation = \OC_App::getNavigation();
+$navigation = \OC::$server->getNavigationManager()->getAll();
OCP\JSON::success(['nav_entries' => $navigation]);