fix /cloud after recent changes
This commit is contained in:
parent
523e7b5084
commit
d4627a0b1c
@ -23,7 +23,6 @@ require_once('vendor/autoload.php');
|
|||||||
class Cloud extends \Zotlabs\Web\Controller {
|
class Cloud extends \Zotlabs\Web\Controller {
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
require_once('include/reddav.php');
|
|
||||||
|
|
||||||
if (! is_dir('store'))
|
if (! is_dir('store'))
|
||||||
os_mkdir('store', STORAGE_DEFAULT_PERMISSIONS, false);
|
os_mkdir('store', STORAGE_DEFAULT_PERMISSIONS, false);
|
||||||
@ -81,7 +80,7 @@ class Cloud extends \Zotlabs\Web\Controller {
|
|||||||
|
|
||||||
if($_SERVER['REQUEST_METHOD'] === 'GET') {
|
if($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||||
try {
|
try {
|
||||||
$x = RedFileData('/' . \App::$cmd, $auth);
|
$x = $rootDirectory->CollectionData('/' . \App::$cmd, $auth);
|
||||||
}
|
}
|
||||||
catch(\Exception $e) {
|
catch(\Exception $e) {
|
||||||
if($e instanceof Sabre\DAV\Exception\Forbidden) {
|
if($e instanceof Sabre\DAV\Exception\Forbidden) {
|
||||||
|
Reference in New Issue
Block a user