[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm
bisitz
bisitz at source.lon-capa.org
Fri Sep 9 12:56:36 EDT 2011
bisitz Fri Sep 9 16:56:36 2011 EDT
Modified files:
/loncom/homework lonhomework.pm
Log:
Error style and separate paragraph for error messages related to missing resources
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.327 loncom/homework/lonhomework.pm:1.328
--- loncom/homework/lonhomework.pm:1.327 Mon Jul 4 13:01:57 2011
+++ loncom/homework/lonhomework.pm Fri Sep 9 16:56:35 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Homework handler
#
-# $Id: lonhomework.pm,v 1.327 2011/07/04 13:01:57 raeburn Exp $
+# $Id: lonhomework.pm,v 1.328 2011/09/09 16:56:35 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -904,10 +904,10 @@
my $problem=&Apache::lonnet::getfile($file);
if ($problem eq -1) {
&Apache::lonxml::error(
- '<b> '
+ '<p class="LC_error">'
.&mt('Unable to find [_1]',
'<span class="LC_filename">'.$file.'</span>')
- .'</b>');
+ .'</p>');
$problem='';
}
@@ -1014,9 +1014,10 @@
$problem='';
my $filename=(split('/',$file))[-1];
my $error =
- "<b> ".&mt('Unable to find [_1]',
+ '<p class="LC_error">'
+ .&mt('Unable to find [_1]',
'<span class="LC_filename">'.$filename.'</span>')
- ."</b>";
+ ."</p>";
$result.=
&Apache::loncommon::simple_error_page($request,'Not available',
$error);
More information about the LON-CAPA-cvs
mailing list