Er. And should be more working-ish now.

This commit is contained in:
Andrew McMillan 2006-12-09 15:55:16 +13:00
parent 03f5d6c0cc
commit d0e9ade678

View File

@ -380,14 +380,15 @@ class CalDAVRequest
$badprops = new XMLElement( "prop" );
foreach( $unsupported AS $k => $v ) {
// Not supported at this point...
dbg_error_log("ERROR", " LOCK: Support for $v:$k properties is not implemented yet");
dbg_error_log("ERROR", " %s: Support for $v:$k properties is not implemented yet", $this->method );
$badprops->NewElement(strtolower($k),false,array("xmlns" => strtolower($v)));
}
$error = new XMLElement("error", new XMLElement( "LOCK",$badprops), array("xmlns" => "DAV:") );
$request->DoResponse( 422, $error->Render(0,'<?xml version="1.0" ?>'), 'text/xml; charset="utf-8"');
$this->DoResponse( 422, $error->Render(0,'<?xml version="1.0" ?>'), 'text/xml; charset="utf-8"');
}
/**
* Utility function we call when we have a simple status-based response to
* return to the client. Possibly