summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-09-18 13:00:58 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-18 13:00:58 +0200
commit0101b1c65f114345e183bcef6877b61cd83feb93 (patch)
tree2d6f33b1bb0491c363445293843a3f5e05240abe /lib
parenta4a5c9dafd66fa61129a890a65e12351e1e223af (diff)
parent35d4851af2733515a1c81d4c0b78c4c14bf570e6 (diff)
downloadnextcloud-server-0101b1c65f114345e183bcef6877b61cd83feb93.tar.gz
nextcloud-server-0101b1c65f114345e183bcef6877b61cd83feb93.zip
Merge pull request #18840 from owncloud/fix-app-disable-route
Rebuild app navigation in JS
Diffstat (limited to 'lib')
-rw-r--r--lib/private/app.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/private/app.php b/lib/private/app.php
index 368b3220b49..e44290369a8 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -395,29 +395,6 @@ class OC_App {
}
/**
- * Get the navigation entries for the $app
- *
- * @param string $app app
- * @return array an array of the $data added with addNavigationEntry
- *
- * Warning: destroys the existing entries
- */
- public static function getAppNavigationEntries($app) {
- if (is_file(self::getAppPath($app) . '/appinfo/app.php')) {
- OC::$server->getNavigationManager()->clear();
- try {
- require $app . '/appinfo/app.php';
- } catch (\OC\Encryption\Exceptions\ModuleAlreadyExistsException $e) {
- // FIXME we should avoid getting this exception in first place,
- // For now we just catch it, since we don't care about encryption modules
- // when trying to find out, whether the app has a navigation entry.
- }
- return OC::$server->getNavigationManager()->getAll();
- }
- return array();
- }
-
- /**
* gets the active Menu entry
*
* @return string id or empty string