aboutsummaryrefslogtreecommitdiffstats
path: root/mod/cloud.php
diff options
context:
space:
mode:
authorRedMatrix <info@friendica.com>2014-10-13 09:59:01 +1100
committerRedMatrix <info@friendica.com>2014-10-13 09:59:01 +1100
commitb1ea4f9e1161d4edf3b8c858df91ffbce65199bb (patch)
tree0018ab3d0460d1ce2e0b17061e20fb10776c58af /mod/cloud.php
parent1dfd74fe3959a8f76abf1ac8c66f2b4f2649e128 (diff)
parent5aae5862f285d9340b37abfb3c390c2816692c6d (diff)
downloadvolse-hubzilla-b1ea4f9e1161d4edf3b8c858df91ffbce65199bb.tar.gz
volse-hubzilla-b1ea4f9e1161d4edf3b8c858df91ffbce65199bb.tar.bz2
volse-hubzilla-b1ea4f9e1161d4edf3b8c858df91ffbce65199bb.zip
Merge pull request #636 from dawnbreak/RedDAV
Moved classes from reddav.php into own files.
Diffstat (limited to 'mod/cloud.php')
-rw-r--r--mod/cloud.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/cloud.php b/mod/cloud.php
index 149a6da5d..27724f6b0 100644
--- a/mod/cloud.php
+++ b/mod/cloud.php
@@ -63,7 +63,7 @@ function cloud_init(&$a) {
if ($which)
profile_load($a, $which, $profile);
- $auth = new RedBasicAuth();
+ $auth = new RedDAV\RedBasicAuth();
$ob_hash = get_observer_hash();
@@ -91,7 +91,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 RedDirectory('/', $auth);
+ $rootDirectory = new RedDAV\RedDirectory('/', $auth);
// A SabreDAV server-object
$server = new DAV\Server($rootDirectory);
@@ -117,7 +117,7 @@ function cloud_init(&$a) {
if ((! $auth->observer) && ($_SERVER['REQUEST_METHOD'] === 'GET')) {
try {
$x = RedFileData('/' . $a->cmd, $auth);
- if($x instanceof RedFile)
+ if($x instanceof RedDAV\RedFile)
$isapublic_file = true;
}
catch (Exception $e) {
@@ -150,4 +150,4 @@ function cloud_init(&$a) {
$server->exec();
killme();
-} \ No newline at end of file
+}