[LON-CAPA-cvs] cvs: loncom /interface lonmsg.pm

raeburn raeburn@source.lon-capa.org
Sat, 05 Mar 2011 21:32:02 -0000


raeburn		Sat Mar  5 21:32:02 2011 EDT

  Modified files:              
    /loncom/interface	lonmsg.pm 
  Log:
  - Bug 6413.
    - Subject for notification e-mail uses subject from corresponding LON-CAPA
      message (uness blank), with [LON-CAPA] prepended.
  
  
Index: loncom/interface/lonmsg.pm
diff -u loncom/interface/lonmsg.pm:1.231 loncom/interface/lonmsg.pm:1.232
--- loncom/interface/lonmsg.pm:1.231	Sun Feb 13 17:44:51 2011
+++ loncom/interface/lonmsg.pm	Sat Mar  5 21:32:02 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines for messaging
 #
-# $Id: lonmsg.pm,v 1.231 2011/02/13 17:44:51 raeburn Exp $
+# $Id: lonmsg.pm,v 1.232 2011/03/05 21:32:02 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -527,6 +527,9 @@
 to access the full message.',$url);
     my %userenv = &Apache::lonnet::get('environment',['notifywithhtml'],$toudom,$touname);
     my $subject = &mt_user($user_lh,"'New' $critical message from ").$sender;
+    unless ($subj eq '') {
+        $subject = $subj;
+    }
  
     my ($blocked,$blocktext);
     if (!$crit) {