small fixes in webdav
This commit is contained in:
parent
afa2c4a2c3
commit
6affa3281a
2 changed files with 1 additions and 2 deletions
|
@ -41,7 +41,6 @@ $passwd=$_SERVER['PHP_AUTH_PW'];
|
|||
if(OC_USER::login($user,$passwd)){
|
||||
OC_UTIL::setUpFS();
|
||||
$server = new HTTP_WebDAV_Server_Filesystem();
|
||||
$server->db_name = $CONFIG_DBNAME;
|
||||
$server->ServeRequest($CONFIG_DATADIRECTORY);
|
||||
|
||||
}else{
|
||||
|
|
|
@ -410,7 +410,7 @@
|
|||
OC_FILESYSTEM::unlink($path);
|
||||
}
|
||||
$query = OC_DB::prepare("DELETE FROM *PREFIX*properties WHERE path = ?");
|
||||
$query->execute(array($options[path]));
|
||||
$query->execute(array($options['path']));
|
||||
|
||||
return "204 No Content";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue