From 805a91f3ef42eeb8260b31391cbcf11a282abf7f Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Wed, 14 Sep 2011 23:02:53 +1200 Subject: [PATCH] Fix deprecated calls. --- inc/caldav-DELETE.php | 2 +- inc/caldav-PUT-vcard.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/caldav-DELETE.php b/inc/caldav-DELETE.php index d6ecab87..fddb3b24 100644 --- a/inc/caldav-DELETE.php +++ b/inc/caldav-DELETE.php @@ -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(); diff --git a/inc/caldav-PUT-vcard.php b/inc/caldav-PUT-vcard.php index 896c10a2..546e6ab5 100644 --- a/inc/caldav-PUT-vcard.php +++ b/inc/caldav-PUT-vcard.php @@ -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'));