summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2019-11-04 19:25:00 +0100
committerRobin Appelman <robin@icewind.nl>2019-11-04 19:51:37 +0100
commitef2fb51065aabb90e8e4234d84a78f4e047f7d1c (patch)
treea4a0152950139fb23255f68d7aaf6afd8a3b730f /apps/files_sharing/appinfo
parent5ca27085fcb01db920326ea9ad892cc9a49253ab (diff)
downloadnextcloud-server-ef2fb51065aabb90e8e4234d84a78f4e047f7d1c.tar.gz
nextcloud-server-ef2fb51065aabb90e8e4234d84a78f4e047f7d1c.zip
remove missed manual Application instance constructions
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r--apps/files_sharing/appinfo/app.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php
index 32159f7b973..c4f44095dcd 100644
--- a/apps/files_sharing/appinfo/app.php
+++ b/apps/files_sharing/appinfo/app.php
@@ -29,13 +29,14 @@
use OCA\Files_Sharing\ShareBackend\File;
use OCA\Files_Sharing\ShareBackend\Folder;
+use OCA\Files_Sharing\AppInfo\Application;
\OCA\Files_Sharing\Helper::registerHooks();
\OC\Share\Share::registerBackend('file', File::class);
\OC\Share\Share::registerBackend('folder', Folder::class, 'file');
-$application = new \OCA\Files_Sharing\AppInfo\Application();
+$application = \OC::$server->query(Application::class);
$application->registerMountProviders();
$eventDispatcher = \OC::$server->getEventDispatcher();