Switch error response to use XMLResponse

This commit is contained in:
Andrew McMillan 2007-06-04 23:40:11 +12:00
parent 902219d154
commit 7e05f4221e

View File

@ -452,7 +452,7 @@ class CalDAVRequest
} }
$error = new XMLElement("error", new XMLElement( "LOCK",$badprops), array("xmlns" => "DAV:") ); $error = new XMLElement("error", new XMLElement( "LOCK",$badprops), array("xmlns" => "DAV:") );
$this->DoResponse( 422, $error->Render(0,'<?xml version="1.0" ?>'), 'text/xml; charset="utf-8"'); $this->XMLResponse( 422, $error );
} }
} }