[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

raeburn raeburn at source.lon-capa.org
Wed Dec 5 12:40:59 EST 2012


raeburn		Wed Dec  5 17:40:59 2012 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - More restrictive version of changes in rev 1.1179 to prevent display of  
   "Post Discussion" and "Send Feedback" footer in CSTR in a corner case. 
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1205 loncom/lonnet/perl/lonnet.pm:1.1206
--- loncom/lonnet/perl/lonnet.pm:1.1205	Mon Dec  3 14:47:37 2012
+++ loncom/lonnet/perl/lonnet.pm	Wed Dec  5 17:40:59 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1205 2012/12/03 14:47:37 raeburn Exp $
+# $Id: lonnet.pm,v 1.1206 2012/12/05 17:40:59 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -10622,14 +10622,14 @@
 
 sub symbread {
     my ($thisfn,$donotrecurse)=@_;
-    my $cache_str='request.symbread.cached.'.$thisfn;
-    if (defined($env{$cache_str})) {
-        if (($thisfn) || ($env{$cache_str} ne '')) {
+    my $cache_str;
+    if ($thisfn ne '') {
+        $cache_str='request.symbread.cached.'.$thisfn;
+        if ($env{$cache_str} ne '') {
             return $env{$cache_str};
         }
-    }
+    } else {
 # no filename provided? try from environment
-    unless ($thisfn) {
         if ($env{'request.symb'}) {
 	    return $env{$cache_str}=&symbclean($env{'request.symb'});
 	}




More information about the LON-CAPA-cvs mailing list