[LON-CAPA-cvs] cvs: loncom /interface lonmsg.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Mon, 03 May 2004 19:10:39 -0000
sakharuk Mon May 3 15:10:39 2004 EDT
Modified files:
/loncom/interface lonmsg.pm
Log:
Added 'tex' target neccessary to work with lonaboutme.pm.
Index: loncom/interface/lonmsg.pm
diff -u loncom/interface/lonmsg.pm:1.97 loncom/interface/lonmsg.pm:1.98
--- loncom/interface/lonmsg.pm:1.97 Tue Apr 6 11:56:37 2004
+++ loncom/interface/lonmsg.pm Mon May 3 15:10:39 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines for messaging
#
-# $Id: lonmsg.pm,v 1.97 2004/04/06 15:56:37 matthew Exp $
+# $Id: lonmsg.pm,v 1.98 2004/05/03 19:10:39 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -911,6 +911,7 @@
sub disfacetoface {
my ($r,$user,$domain)=@_;
+ my $target=$ENV{'form.grade_target'};
unless ($ENV{'request.course.id'}) { return; }
unless (&Apache::lonnet::allowed('srm',$ENV{'request.course.id'})) {
return;
@@ -944,7 +945,11 @@
}
# Check to see if there were any messages.
if ($result eq '') {
- $r->print("<p><b>".&mt("No notes, face-to-face discussion records, or critical messages in this course.")."</b></p>");
+ if ($target ne 'tex') {
+ $r->print("<p><b>".&mt("No notes, face-to-face discussion records, or critical messages in this course.")."</b></p>");
+ } else {
+ $r->print('\textbf{'.&mt("No notes, face-to-face discussion records, or critical messages in this course.").'}\\\\');
+ }
} else {
$r->print($result);
}