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

raeburn raeburn at source.lon-capa.org
Mon Mar 18 19:21:17 EDT 2013


raeburn		Mon Mar 18 23:21:17 2013 EDT

  Modified files:              
    /loncom/interface	lonfeedback.pm 
  Log:
  - Possible confirmation messages are mututally exclusive; concatenator not
    needed.
  
  
Index: loncom/interface/lonfeedback.pm
diff -u loncom/interface/lonfeedback.pm:1.364 loncom/interface/lonfeedback.pm:1.365
--- loncom/interface/lonfeedback.pm:1.364	Fri Jan 18 13:22:26 2013
+++ loncom/interface/lonfeedback.pm	Mon Mar 18 23:21:16 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Feedback
 #
-# $Id: lonfeedback.pm,v 1.364 2013/01/18 13:22:26 bisitz Exp $
+# $Id: lonfeedback.pm,v 1.365 2013/03/18 23:21:16 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4423,7 +4423,7 @@
                                                 $cdom,$cnum);
           $contrib{'deleted'} =~ s/^\.//;
           $contrib{'deleted'} =~ s/\.$//;
-          my $confirm_msg = '';
+          my $confirm_msg;
           if ($contrib{'deleted'} ne '') {
               if (&Apache::lonnet::store({'deleted' => ''},$symb,$env{'request.course.id'},
                                           $cdom,$cnum) eq 'ok') {
@@ -4451,12 +4451,12 @@
                                             $uname,$udom,$env{'request.course.id'},
                                             'undelete');
                   }
-                  $confirm_msg .= &Apache::lonhtmlcommon::confirm_success(&mt("Undeleted all entries"));
+                  $confirm_msg = &Apache::lonhtmlcommon::confirm_success(&mt("Undeleted all entries"));
               } else {
-                  $confirm_msg .= &Apache::lonhtmlcommon::confirm_success(&mt("Failed to undelete entries"),1);
+                  $confirm_msg = &Apache::lonhtmlcommon::confirm_success(&mt("Failed to undelete entries"),1);
               }
           } else {
-              $confirm_msg .= &Apache::lonhtmlcommon::confirm_success(&mt("No entries to undelete"),1);
+              $confirm_msg = &Apache::lonhtmlcommon::confirm_success(&mt("No entries to undelete"),1);
           }
           $r->print(
               '<br />'




More information about the LON-CAPA-cvs mailing list