diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-02-08 18:53:43 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-02-08 18:53:43 +0100 |
commit | 340d6fce11d6a66e042e060c514084a0a8ec8455 (patch) | |
tree | c7af074e44d0612b4820643a6d4a273342ce7dae /settings/ajax | |
parent | 96042f1e5b343ed75f59fc2997b7e54c07b557da (diff) | |
download | nextcloud-server-340d6fce11d6a66e042e060c514084a0a8ec8455.tar.gz nextcloud-server-340d6fce11d6a66e042e060c514084a0a8ec8455.zip |
Better way of getting the navigation entries for an app
Diffstat (limited to 'settings/ajax')
-rw-r--r-- | settings/ajax/navigationdetect.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/settings/ajax/navigationdetect.php b/settings/ajax/navigationdetect.php index 93acb50dc20..d21f774126c 100644 --- a/settings/ajax/navigationdetect.php +++ b/settings/ajax/navigationdetect.php @@ -5,10 +5,7 @@ OCP\JSON::callCheck(); $app = $_GET['app']; -//load the one app and see what it adds to the navigation -OC_App::loadApp($app); - -$navigation = OC_App::getNavigation(); +$navigation = OC_App::getAppNavigationEntries($app); $navIds = array(); foreach ($navigation as $nav) { |