mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-25 02:34:17 +00:00
Improve translatability and understanding for non-geeks.
This commit is contained in:
parent
f8aecfc746
commit
9102509d1a
@ -58,7 +58,7 @@ if ( $request->IsCollection() ) {
|
||||
}
|
||||
}
|
||||
else {
|
||||
$request->DoResponse( 404, "");
|
||||
$request->DoResponse( 404 );
|
||||
}
|
||||
}
|
||||
else {
|
||||
@ -69,7 +69,7 @@ else {
|
||||
if ( $qry->Exec("DELETE") && $qry->rows == 1 ) {
|
||||
$delete_row = $qry->Fetch();
|
||||
if ( (isset($request->etag_if_match) && $request->etag_if_match != $delete_row->dav_etag) ) {
|
||||
$request->DoResponse( 412, translate("Resource does not match 'If-Match' header - not deleted") );
|
||||
$request->DoResponse( 412, translate("Resource has changed on server - not deleted") );
|
||||
}
|
||||
$qry = new PgQuery( "DELETE FROM caldav_data WHERE user_no = ? AND dav_name = ?;", $request->user_no, $request->path );
|
||||
if ( $qry->Exec("DELETE") ) {
|
||||
@ -81,7 +81,7 @@ else {
|
||||
}
|
||||
}
|
||||
else {
|
||||
$request->DoResponse( 404, "");
|
||||
$request->DoResponse( 404 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -77,7 +77,7 @@ elseif ( $qry->rows < 1 ) {
|
||||
* entity exists, the server MUST NOT perform the requested method, and
|
||||
* MUST return a 412 (Precondition Failed) response.
|
||||
*/
|
||||
$request->DoResponse( 412, translate("No existing resource matching 'If-Match' header - not accepted.") );
|
||||
$request->DoResponse( 412, translate("Resource changed on server - not changed.") );
|
||||
}
|
||||
|
||||
$put_action_type = 'INSERT';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user