mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Fix deprecated calls.
This commit is contained in:
1 parent
731677d623
commit
805a91f3ef
2 files changed
+2
-2
No files matched your search
@@ -12,7 +12,7 @@ dbg_error_log("delete", "DELETE method handler");
|
||||
|
||||
require_once('DAVResource.php');
|
||||
$dav_resource = new DAVResource($request->path);
|
||||
$container = $dav_resource->FetchParentContainer();
|
||||
$container = $dav_resource->GetParentContainer();
|
||||
$container->NeedPrivilege('DAV::unbind');
|
||||
|
||||
$lock_opener = $request->FailIfLocked();
|
||||
|
||||
@@ -24,7 +24,7 @@ $lock_opener = $request->FailIfLocked();
|
||||
|
||||
$dest = new DAVResource($request->path);
|
||||
|
||||
$container = $dest->FetchParentContainer();
|
||||
$container = $dest->GetParentContainer();
|
||||
if ( ! $dest->Exists() ) {
|
||||
if ( $container->IsPrincipal() ) {
|
||||
$request->PreconditionFailed(405,'method-not-allowed',translate('A DAViCal principal collection may only contain collections'));
|
||||
|
||||
Reference in new issue
Block a user