summaryrefslogtreecommitdiffstats
path: root/apps/files_external/settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/settings.php')
-rw-r--r--apps/files_external/settings.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/settings.php b/apps/files_external/settings.php
index 7e20af0c60d..2ad31a31137 100644
--- a/apps/files_external/settings.php
+++ b/apps/files_external/settings.php
@@ -30,8 +30,8 @@ use \OCA\Files_External\Service\BackendService;
OC_Util::checkAdminUser();
-$app = new \OCA\Files_external\Appinfo\Application();
-$appContainer = $app->getContainer();
+// we must use the same container
+$appContainer = \OC_Mount_Config::$app->getContainer();
$backendService = $appContainer->query('OCA\Files_External\Service\BackendService');
$globalStoragesService = $appContainer->query('OCA\Files_external\Service\GlobalStoragesService');