--- loncom/xml/lonxml.pm 2009/06/23 03:01:26 1.497 +++ loncom/xml/lonxml.pm 2009/07/08 17:55:16 1.498 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.497 2009/06/23 03:01:26 www Exp $ +# $Id: lonxml.pm,v 1.498 2009/07/08 17:55:16 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1043,7 +1043,7 @@ sub get_id { my ($parstack,$safeeval)=@_; my $id= &Apache::lonxml::get_param('id',$parstack,$safeeval); if ($env{'request.state'} eq 'construct' && $id =~ /([._]|[^\w\d\s[:punct:]])/) { - &error(&mt("ID "[_1]" contains invalid characters, IDs are only allowed to contain letters, numbers, spaces and -",''.$id.'')); + &error(&mt('ID [_1] contains invalid characters. IDs are only allowed to contain letters, numbers, spaces and -','"'.$id.'"')); } if ($id =~ /^\s*$/) { $id = $Apache::lonxml::curdepth; } return $id;