Fix #1 wrong class name

This commit is contained in:
bohwaz 2022-12-22 14:15:10 +01:00
parent fe645d71da
commit 9b30c8da2b
2 changed files with 5 additions and 5 deletions

View File

@ -1544,7 +1544,7 @@ namespace PicoDAV
} }
if (null === $properties) { if (null === $properties) {
$properties = WebDAV::BASIC_PROPERTIES; $properties = Server::BASIC_PROPERTIES;
} }
$out = []; $out = [];
@ -1586,7 +1586,7 @@ namespace PicoDAV
$size = 0; $size = 0;
$quota = disk_free_space($this->path); $quota = disk_free_space($this->path);
$tmp_file = '.tmp.' . sha1($target); $tmp_file = $this->path . '.tmp.' . sha1($target);
$out = fopen($tmp_file, 'w'); $out = fopen($tmp_file, 'w');
while (!feof($pointer)) { while (!feof($pointer)) {
@ -1863,11 +1863,11 @@ RewriteRule ^.*$ /index.php [END]
$fp = fopen(__FILE__, 'r'); $fp = fopen(__FILE__, 'r');
if ($relative_uri == '.webdav/webdav.js') { if ($relative_uri == '.webdav/webdav.js') {
fseek($fp, 50022, SEEK_SET); fseek($fp, 50036, SEEK_SET);
echo fread($fp, 27769); echo fread($fp, 27769);
} }
else { else {
fseek($fp, 50022 + 27769, SEEK_SET); fseek($fp, 50036 + 27769, SEEK_SET);
echo fread($fp, 7004); echo fread($fp, 7004);
} }

View File

@ -268,7 +268,7 @@ namespace PicoDAV
} }
if (null === $properties) { if (null === $properties) {
$properties = WebDAV::BASIC_PROPERTIES; $properties = Server::BASIC_PROPERTIES;
} }
$out = []; $out = [];