[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 10 Dec 2004 17:54:55 -0000


albertel		Fri Dec 10 12:54:55 2004 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - do the same as last version for <problem>
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.275 loncom/homework/structuretags.pm:1.276
--- loncom/homework/structuretags.pm:1.275	Fri Dec 10 12:50:30 2004
+++ loncom/homework/structuretags.pm	Fri Dec 10 12:54:54 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.275 2004/12/10 17:50:30 albertel Exp $
+# $Id: structuretags.pm,v 1.276 2004/12/10 17:54:54 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -581,6 +581,8 @@
 		    $allow_print_points=1;
 		}
 	    }
+	    my $maxtries = &Apache::lonnet::EXT("resource.$id.maxtries");
+	    if (defined($maxtries) && $maxtries < 0) { $allow_print_points=0; }
 	    my $duedate = &Apache::lonnet::EXT("resource.$id.duedate"); 
 	    $duedate = POSIX::strftime("%c",localtime($duedate));
 	    my $temp_file;