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

raeburn raeburn at source.lon-capa.org
Thu Apr 5 17:36:28 EDT 2012


raeburn		Thu Apr  5 21:36:28 2012 EDT

  Modified files:              
    /loncom/interface	lonblockingmenu.pm 
  Log:
  - Include number of seconds in display of time limit.
  
  
Index: loncom/interface/lonblockingmenu.pm
diff -u loncom/interface/lonblockingmenu.pm:1.6 loncom/interface/lonblockingmenu.pm:1.7
--- loncom/interface/lonblockingmenu.pm:1.6	Thu Apr  5 01:41:11 2012
+++ loncom/interface/lonblockingmenu.pm	Thu Apr  5 21:36:28 2012
@@ -2,7 +2,7 @@
 # Routines for configuring blocking of access to collaborative functions, 
 # and specific resources during an exam
 #
-# $Id: lonblockingmenu.pm,v 1.6 2012/04/05 01:41:11 raeburn Exp $
+# $Id: lonblockingmenu.pm,v 1.7 2012/04/05 21:36:28 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1181,7 +1181,9 @@
     my @toshow;
     foreach my $cat (@order) {
         if ($cat eq 'seconds') {
-            last if ($timelimit <= 0);
+            if ($timelimit > 0) {
+                push(@toshow,&mt("[_1] $cat",$timelimit));
+            }
         } elsif ($timelimit >= $catlimits{$cat}) {
             my $val = int($timelimit/$catlimits{$cat});
             if ($val > 0) {




More information about the LON-CAPA-cvs mailing list