]> source.dussan.org Git - nextcloud-server.git/commitdiff
Merge pull request #1546 from owncloud/fix-loading-hooks
authorThomas Müller <thomas.mueller@tmit.eu>
Sat, 9 Feb 2013 17:59:41 +0000 (09:59 -0800)
committerThomas Müller <thomas.mueller@tmit.eu>
Sat, 9 Feb 2013 17:59:41 +0000 (09:59 -0800)
Fix loading hooks when going though the routing system

1  2 
lib/app.php
lib/base.php
settings/ajax/navigationdetect.php

diff --cc lib/app.php
Simple merge
diff --cc lib/base.php
Simple merge
index 607c0e873f9dcff5acc2de16781850b42049cf98,d21f774126cd8a4b5b83b9d304946e377067339a..7f961eb9bc52d73ca8631b48aa6b597d6945be0b
@@@ -4,12 -4,8 +4,9 @@@ OC_Util::checkAdminUser()
  OCP\JSON::callCheck();
  
  $app = $_GET['app'];
 +$app = OC_App::cleanAppId($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) {