summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/navigationdetect.php22
1 files changed, 0 insertions, 22 deletions
diff --git a/core/ajax/navigationdetect.php b/core/ajax/navigationdetect.php
deleted file mode 100644
index c7d0bd38dbc..00000000000
--- a/core/ajax/navigationdetect.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-
-$RUNTIME_NOAPPS = true;
-
-require_once '../../lib/base.php';
-
-OC_Util::checkAdminUser();
-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();
-
-$navIds = array();
-foreach ($navigation as $nav) {
- $navIds[] = $nav['id'];
-}
-
-OCP\JSON::success(array('nav_ids' => array_values($navIds), 'nav_entries' => $navigation));