summaryrefslogtreecommitdiffstats
path: root/apps/files_external/appinfo/app.php
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2016-01-14 22:13:28 +0000
committerRobin McCorkell <rmccorkell@owncloud.com>2016-01-14 22:13:28 +0000
commit4ffe8d70fae05e0bc6dba69190da665e3b85d64b (patch)
tree1b49a05a6a439b3bd61c92d73d62c778f59492a6 /apps/files_external/appinfo/app.php
parentb48ddc94a9caa1c482a7260a298f5418b6028793 (diff)
downloadnextcloud-server-4ffe8d70fae05e0bc6dba69190da665e3b85d64b.tar.gz
nextcloud-server-4ffe8d70fae05e0bc6dba69190da665e3b85d64b.zip
Consolidate user mounting check code
Diffstat (limited to 'apps/files_external/appinfo/app.php')
-rw-r--r--apps/files_external/appinfo/app.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/files_external/appinfo/app.php b/apps/files_external/appinfo/app.php
index 9a2ec7286ca..c8d90f02f29 100644
--- a/apps/files_external/appinfo/app.php
+++ b/apps/files_external/appinfo/app.php
@@ -45,12 +45,9 @@ require_once __DIR__ . '/../3rdparty/autoload.php';
\OC_Mount_Config::$app = new \OCA\Files_external\Appinfo\Application();
$appContainer = \OC_Mount_Config::$app->getContainer();
-$l = \OC::$server->getL10N('files_external');
+\OC_Mount_Config::$app->registerSettings();
-OCP\App::registerAdmin('files_external', 'settings');
-if (OCP\Config::getAppValue('files_external', 'allow_user_mounting', 'yes') == 'yes') {
- OCP\App::registerPersonal('files_external', 'personal');
-}
+$l = \OC::$server->getL10N('files_external');
\OCA\Files\App::getNavigationManager()->add([
"id" => 'extstoragemounts',