summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/connector/sabre/lockplugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/connector/sabre/lockplugin.php')
-rw-r--r--apps/dav/lib/connector/sabre/lockplugin.php16
1 files changed, 2 insertions, 14 deletions
diff --git a/apps/dav/lib/connector/sabre/lockplugin.php b/apps/dav/lib/connector/sabre/lockplugin.php
index 5840e59854c..8032d2b3fbf 100644
--- a/apps/dav/lib/connector/sabre/lockplugin.php
+++ b/apps/dav/lib/connector/sabre/lockplugin.php
@@ -39,18 +39,6 @@ class LockPlugin extends ServerPlugin {
private $server;
/**
- * @var \Sabre\DAV\Tree
- */
- private $tree;
-
- /**
- * @param \Sabre\DAV\Tree $tree tree
- */
- public function __construct(Tree $tree) {
- $this->tree = $tree;
- }
-
- /**
* {@inheritdoc}
*/
public function initialize(\Sabre\DAV\Server $server) {
@@ -66,7 +54,7 @@ class LockPlugin extends ServerPlugin {
return;
}
try {
- $node = $this->tree->getNodeForPath($request->getPath());
+ $node = $this->server->tree->getNodeForPath($request->getPath());
} catch (NotFound $e) {
return;
}
@@ -84,7 +72,7 @@ class LockPlugin extends ServerPlugin {
return;
}
try {
- $node = $this->tree->getNodeForPath($request->getPath());
+ $node = $this->server->tree->getNodeForPath($request->getPath());
} catch (NotFound $e) {
return;
}