summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-01-15 11:49:50 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-20 21:12:26 +0100
commit8734ebe505d621c355da0495e29692c56ca45226 (patch)
tree7e40c72fbc4e0f2318c67c64319569cbc50179a3 /apps/files_sharing/appinfo
parent717697313b07106fd7941b83ff0271272c2c7791 (diff)
downloadnextcloud-server-8734ebe505d621c355da0495e29692c56ca45226.tar.gz
nextcloud-server-8734ebe505d621c355da0495e29692c56ca45226.zip
[Share 2.0] Make link share download use share manager
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r--apps/files_sharing/appinfo/application.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_sharing/appinfo/application.php b/apps/files_sharing/appinfo/application.php
index 5fa400db7d2..3971b04097f 100644
--- a/apps/files_sharing/appinfo/application.php
+++ b/apps/files_sharing/appinfo/application.php
@@ -54,7 +54,8 @@ class Application extends App {
$server->getActivityManager(),
$c->query('ShareManager'),
$c->query('Session'),
- $server->getPreviewManager()
+ $server->getPreviewManager(),
+ $c->query('RootFolder')
);
});
$container->registerService('ExternalSharesController', function (SimpleContainer $c) {
@@ -69,6 +70,9 @@ class Application extends App {
/**
* Core class wrappers
*/
+ $container->registerService('RootFolder', function(SimpleContainer $c) use ($server) {
+ return $server->getRootFolder();
+ });
$container->registerService('Session', function(SimpleContainer $c) use ($server) {
return $server->getSession();
});