diff options
author | friendica <info@friendica.com> | 2014-01-02 01:09:57 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-01-02 01:09:57 -0800 |
commit | ad08561d84fa73e672b3621c511a95714f4ba99e (patch) | |
tree | e7595f3c952e7b70828ad36e79bb23a3a722470b /mod/cloud.php | |
parent | 76106e16d5ac3eaa0327cd4781914733f4c08448 (diff) | |
download | volse-hubzilla-ad08561d84fa73e672b3621c511a95714f4ba99e.tar.gz volse-hubzilla-ad08561d84fa73e672b3621c511a95714f4ba99e.tar.bz2 volse-hubzilla-ad08561d84fa73e672b3621c511a95714f4ba99e.zip |
some DAV tweaks before the next round of heavy lifting
Diffstat (limited to 'mod/cloud.php')
-rw-r--r-- | mod/cloud.php | 8 |
1 files changed, 3 insertions, 5 deletions
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 |