diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-07-30 18:34:30 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-07-30 18:34:30 -0700 |
commit | fd947c205b1c2da8f93e1f8cc82968747355e6f9 (patch) | |
tree | 9dfeb1e7df7bbb069d79157d29dc7659b8359f0f /include/RedDAV/RedDirectory.php | |
parent | ec41899328bc2a5de4be089268501e4f80c84e13 (diff) | |
download | volse-hubzilla-fd947c205b1c2da8f93e1f8cc82968747355e6f9.tar.gz volse-hubzilla-fd947c205b1c2da8f93e1f8cc82968747355e6f9.tar.bz2 volse-hubzilla-fd947c205b1c2da8f93e1f8cc82968747355e6f9.zip |
make /cloud work again after all the shuffling this morning
Diffstat (limited to 'include/RedDAV/RedDirectory.php')
-rw-r--r-- | include/RedDAV/RedDirectory.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/RedDAV/RedDirectory.php b/include/RedDAV/RedDirectory.php index ee01d4a17..c7921d96f 100644 --- a/include/RedDAV/RedDirectory.php +++ b/include/RedDAV/RedDirectory.php @@ -50,7 +50,7 @@ class RedDirectory extends DAV\Node implements DAV\ICollection, DAV\IQuota { */ public function __construct($ext_path, &$auth_plugin) { // $ext_path = urldecode($ext_path); - //logger('directory ' . $ext_path, LOGGER_DATA); + logger('directory ' . $ext_path, LOGGER_DATA); $this->ext_path = $ext_path; // remove "/cloud" from the beginning of the path $modulename = get_app()->module; @@ -80,7 +80,7 @@ class RedDirectory extends DAV\Node implements DAV\ICollection, DAV\IQuota { * @return array \Sabre\DAV\INode[] */ public function getChildren() { - //logger('children for ' . $this->ext_path, LOGGER_DATA); + logger('children for ' . $this->ext_path, LOGGER_DATA); $this->log(); if (get_config('system', 'block_public') && (! $this->auth->channel_id) && (! $this->auth->observer)) { @@ -370,15 +370,14 @@ class RedDirectory extends DAV\Node implements DAV\ICollection, DAV\IQuota { * @return void */ function getDir() { - //logger($this->ext_path, LOGGER_DEBUG); + + logger('GetDir: ' . $this->ext_path, LOGGER_DEBUG); $this->auth->log(); $modulename = get_app()->module; $file = $this->ext_path; $x = strpos($file, '/' . $modulename); - if ($x === false) - return; if ($x === 0) { $file = substr($file, strlen($modulename) + 1); } @@ -419,7 +418,6 @@ class RedDirectory extends DAV\Node implements DAV\ICollection, DAV\IQuota { dbesc($path_arr[$x]), intval($channel_id) ); - if ($r && intval($r[0]['is_dir'])) { $folder = $r[0]['hash']; if (strlen($os_path)) |