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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 10 Jan 2005 19:12:55 -0000


albertel		Mon Jan 10 14:12:55 2005 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - BUG#3496, discusshide's default wasn't being picked up since we were looking for part_<partid> rather than the correct part_0
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.584 loncom/lonnet/perl/lonnet.pm:1.585
--- loncom/lonnet/perl/lonnet.pm:1.584	Thu Dec 30 11:07:48 2004
+++ loncom/lonnet/perl/lonnet.pm	Mon Jan 10 14:12:55 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.584 2004/12/30 16:07:48 raeburn Exp $
+# $Id: lonnet.pm,v 1.585 2005/01/10 19:12:55 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4450,6 +4450,7 @@
 	if (defined($packagetab{"$pack_type&$name&default"})) {
 	    return $packagetab{"$pack_type&$name&default"};
 	}
+	if ($pack_type eq 'part') { $pack_part='0'; }
 	if (defined($packagetab{$pack_type."_".$pack_part."&$name&default"})) {
 	    return $packagetab{$pack_type."_".$pack_part."&$name&default"};
 	}