diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-06-30 18:28:18 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-06-30 18:37:47 +0200 |
commit | 1e0810e80706211e0c7aa736172dc6fd1c34bde7 (patch) | |
tree | e0b685c1ffa6b8ce8af220a9a610bc084c37b4d9 /apps/files/appinfo | |
parent | fe0de5fc10f61a7bb3173a04a986b145789b9160 (diff) | |
download | nextcloud-server-1e0810e80706211e0c7aa736172dc6fd1c34bde7.tar.gz nextcloud-server-1e0810e80706211e0c7aa736172dc6fd1c34bde7.zip |
use new ObjectTree in sabredav
Diffstat (limited to 'apps/files/appinfo')
-rw-r--r-- | apps/files/appinfo/remote.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files/appinfo/remote.php b/apps/files/appinfo/remote.php index 6c92cc80b69..c3e06a0ca76 100644 --- a/apps/files/appinfo/remote.php +++ b/apps/files/appinfo/remote.php @@ -23,7 +23,7 @@ * */ // load needed apps -$RUNTIME_APPTYPES=array('filesystem', 'authentication', 'logging'); +$RUNTIME_APPTYPES = array('filesystem', 'authentication', 'logging'); OC_App::loadApps($RUNTIME_APPTYPES); @@ -35,10 +35,11 @@ $lockBackend = new OC_Connector_Sabre_Locks(); $requestBackend = new OC_Connector_Sabre_Request(); // Create ownCloud Dir -$publicDir = new OC_Connector_Sabre_Directory(''); +$rootDir = new OC_Connector_Sabre_Directory(''); +$objectTree = new \OC\Connector\Sabre\ObjectTree($rootDir); // Fire up server -$server = new Sabre_DAV_Server($publicDir); +$server = new Sabre_DAV_Server($objectTree); $server->httpRequest = $requestBackend; $server->setBaseUri($baseuri); |