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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 04 Mar 2004 21:21:55 -0000


albertel		Thu Mar  4 16:21:55 2004 EDT

  Modified files:              
    /loncom/homework	hint.pm 
  Log:
  - hintties work in CSTR now.
  
  
Index: loncom/homework/hint.pm
diff -u loncom/homework/hint.pm:1.46 loncom/homework/hint.pm:1.47
--- loncom/homework/hint.pm:1.46	Wed Jan  7 16:01:17 2004
+++ loncom/homework/hint.pm	Thu Mar  4 16:21:55 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # implements the tags that control the hints
 #
-# $Id: hint.pm,v 1.46 2004/01/07 21:01:17 albertel Exp $
+# $Id: hint.pm,v 1.47 2004/03/04 21:21:55 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -48,6 +48,11 @@
 	my $numtries=$Apache::lonhomework::history{"resource.$id.tries"};
 	if ( $numtries eq '') { $numtries = 0; }
 	my $hinttries=&Apache::lonnet::EXT("resource.$id.hinttries");
+	if ($ENV{'request.state'} eq 'construct' &&
+	    defined($Apache::inputtags::params{'hinttries'})) {
+	    $hinttries=$Apache::inputtags::params{'hinttries'};
+	}
+
 	if ( $hinttries eq '') { $hinttries = 1; }
 	&Apache::lonxml::debug("found :$id:$numtries:$hinttries:");
 	my $gradestatus=$Apache::lonhomework::history{"resource.$id.solved"};