--- loncom/homework/lonhomework.pm 2009/03/04 16:00:14 1.304 +++ loncom/homework/lonhomework.pm 2009/03/04 17:57:11 1.305 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.304 2009/03/04 16:00:14 bisitz Exp $ +# $Id: lonhomework.pm,v 1.305 2009/03/04 17:57:11 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -855,8 +855,12 @@ sub editxmlmode { my $result; my $problem=&Apache::lonnet::getfile($file); if ($problem eq -1) { - &Apache::lonxml::error(" ".&mt('Unable to find'). - " $file"); + &Apache::lonxml::error( + ' ' + .&mt('Unable to find [_1]', + ''.$file.'') + .''); + $problem=''; } if (defined($env{'form.editxmltext'}) || defined($env{'form.Undo'})) { @@ -963,7 +967,7 @@ sub renderpage { my $filename=(split('/',$file))[-1]; my $error = " ".&mt('Unable to find [_1]', - ' '.$filename.'') + ''.$filename.'') .""; $result.= &Apache::loncommon::simple_error_page($request,'Not available',