summaryrefslogtreecommitdiffstats
path: root/lib/public/Share.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-11-02 23:26:49 +0100
committerLukas Reschke <lukas@statuscode.ch>2016-11-02 23:26:49 +0100
commit6920e609c02814d03a5dc83792de12d05f1da854 (patch)
tree03b2e78c3f5ccd670cd22cd5f4c6390dc867fe73 /lib/public/Share.php
parent68cebef64ca38ea93bc1006d667726f42d7f9805 (diff)
downloadnextcloud-server-6920e609c02814d03a5dc83792de12d05f1da854.tar.gz
nextcloud-server-6920e609c02814d03a5dc83792de12d05f1da854.zip
Adjust tests and DI for Share.php
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/public/Share.php')
-rw-r--r--lib/public/Share.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/public/Share.php b/lib/public/Share.php
index bc7aa828f62..ec3a7c8db1b 100644
--- a/lib/public/Share.php
+++ b/lib/public/Share.php
@@ -89,7 +89,15 @@ class Share extends \OC\Share\Constants {
* @since 5.0.0 - $recursive was added in 9.0.0
*/
public static function getUsersSharingFile($path, $ownerUser, $includeOwner = false, $returnUserPaths = false, $recursive = true) {
- return \OC\Share\Share::getUsersSharingFile($path, $ownerUser, $includeOwner, $returnUserPaths, $recursive);
+ return \OC\Share\Share::getUsersSharingFile(
+ $path,
+ $ownerUser,
+ \OC::$server->getUserManager(),
+ \OC::$server->getLogger(),
+ $includeOwner,
+ $returnUserPaths,
+ $recursive
+ );
}
/**