From ad08561d84fa73e672b3621c511a95714f4ba99e Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 2 Jan 2014 01:09:57 -0800 Subject: some DAV tweaks before the next round of heavy lifting --- mod/cloud.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'mod/cloud.php') diff --git a/mod/cloud.php b/mod/cloud.php index 3a4cf01b1..209a74c74 100644 --- a/mod/cloud.php +++ b/mod/cloud.php @@ -93,7 +93,7 @@ class RedBasicAuth extends Sabre\DAV\Auth\Backend\AbstractBasic { } -function cloud_init() { +function cloud_init(&$a) { if(! get_config('system','enable_cloud')) killme(); @@ -102,7 +102,7 @@ function cloud_init() { $auth = new RedBasicAuth(); - $rootDirectory = new RedDirectory('store',$auth); + $rootDirectory = new RedDirectory('/cloud',$auth); $server = new DAV\Server($rootDirectory); $lockBackend = new DAV\Locks\Backend\File('store/data/locks'); $lockPlugin = new DAV\Locks\Plugin($lockBackend); @@ -112,7 +112,6 @@ function cloud_init() { $auth->Authenticate($server,'Red Matrix'); - $browser = new DAV\Browser\Plugin(); $server->addPlugin($browser); @@ -120,6 +119,5 @@ function cloud_init() { // All we need to do now, is to fire up the server $server->exec(); - exit; - + killme(); } \ No newline at end of file -- cgit v1.2.3