Those error messages should be translatable.

This commit is contained in:
Andrew McMillan 2008-02-09 22:49:05 +13:00
parent 0715dfcc47
commit fc8352baf3

View File

@ -24,12 +24,12 @@ if ( ! ($request->AllowedTo('read') || $request->AllowedTo('freebusy')) ) {
}
if ( !isset($request->xml_tags) ) {
$request->DoResponse( 403, "REPORT body contains no XML data!" );
$request->DoResponse( 403, translate("REPORT body contains no XML data!") );
}
$position = 0;
$xmltree = BuildXMLTree( $request->xml_tags, $position);
if ( !is_object($xmltree) ) {
$request->DoResponse( 403, "REPORT body is not valid XML data!" );
$request->DoResponse( 403, translate("REPORT body is not valid XML data!") );
}
require_once("iCalendar.php");