summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-02-15 16:55:12 +0100
committerGitHub <noreply@github.com>2018-02-15 16:55:12 +0100
commit14bc9b171427c1512226d5ea402021d8b44ac690 (patch)
tree1a4b9c64f711becf429f90da69d3d46279c55435 /settings
parent8a505e8767fe7af62a4e9e8d95ef2e336b05bf61 (diff)
parente694b30a4f1e1cce6cbca0fcbbfeceee8a16c8f6 (diff)
downloadnextcloud-server-14bc9b171427c1512226d5ea402021d8b44ac690.tar.gz
nextcloud-server-14bc9b171427c1512226d5ea402021d8b44ac690.zip
Merge pull request #8095 from nextcloud/webapps-capabilities
Expose navigation entries as API endpoint
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]);