diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-02-19 22:28:57 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-02-19 22:28:57 +0100 |
commit | fbc6c60805d733e16a3ff7fdf60f564ce69fab64 (patch) | |
tree | a17a162fef7d8d3a79a22f2363eae3f4336acd6a /mod/cloud.php | |
parent | 02e82e496e3ec8dbd8264248ad8550dd5e335cba (diff) | |
parent | 8e586008dd8cceb02fc5378d11fce9673a0d5e41 (diff) | |
download | volse-hubzilla-fbc6c60805d733e16a3ff7fdf60f564ce69fab64.tar.gz volse-hubzilla-fbc6c60805d733e16a3ff7fdf60f564ce69fab64.tar.bz2 volse-hubzilla-fbc6c60805d733e16a3ff7fdf60f564ce69fab64.zip |
Merge branch 'master' of https://github.com/redmatrix/hubzilla
Diffstat (limited to 'mod/cloud.php')
-rw-r--r-- | mod/cloud.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mod/cloud.php b/mod/cloud.php index 67fc199bf..82d454477 100644 --- a/mod/cloud.php +++ b/mod/cloud.php @@ -7,7 +7,7 @@ */ use Sabre\DAV; -use RedMatrix\RedDAV; +use Zotlabs\Storage; // composer autoloader for SabreDAV require_once('vendor/autoload.php'); @@ -35,7 +35,7 @@ function cloud_init(&$a) { if ($which) profile_load($a, $which, $profile); - $auth = new RedDAV\RedBasicAuth(); + $auth = new Zotlabs\Storage\BasicAuth(); $ob_hash = get_observer_hash(); @@ -63,7 +63,7 @@ function cloud_init(&$a) { $_SERVER['REQUEST_URI'] = strip_zids($_SERVER['REQUEST_URI']); $_SERVER['REQUEST_URI'] = preg_replace('/[\?&]davguest=(.*?)([\?&]|$)/ism', '', $_SERVER['REQUEST_URI']); - $rootDirectory = new RedDAV\RedDirectory('/', $auth); + $rootDirectory = new Zotlabs\Storage\Directory('/', $auth); // A SabreDAV server-object $server = new DAV\Server($rootDirectory); @@ -86,16 +86,16 @@ function cloud_init(&$a) { } } - require_once('include/RedDAV/RedBrowser.php'); +// require_once('Zotlabs/Storage/Browser.php'); // provide a directory view for the cloud in Hubzilla - $browser = new RedDAV\RedBrowser($auth); + $browser = new Zotlabs\Storage\Browser($auth); $auth->setBrowserPlugin($browser); $server->addPlugin($browser); // Experimental QuotaPlugin -// require_once('include/RedDAV/QuotaPlugin.php'); -// $server->addPlugin(new RedDAV\QuotaPlugin($auth)); +// require_once('Zotlabs\Storage/QuotaPlugin.php'); +// $server->addPlugin(new Zotlabs\Storage\\QuotaPlugin($auth)); // All we need to do now, is to fire up the server $server->exec(); |