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

raeburn raeburn@source.lon-capa.org
Mon, 20 Dec 2010 18:33:20 -0000


raeburn		Mon Dec 20 18:33:20 2010 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - Replace use of cinc with cput. 
    - Submissions to anonymous survey or randomizetry stores 1,
      if submission made for the questiontype. (no need for incremented count).
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.480 loncom/homework/structuretags.pm:1.481
--- loncom/homework/structuretags.pm:1.480	Sun Dec 19 21:12:20 2010
+++ loncom/homework/structuretags.pm	Mon Dec 20 18:33:20 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.480 2010/12/19 21:12:20 raeburn Exp $
+# $Id: structuretags.pm,v 1.481 2010/12/20 18:33:20 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -798,12 +798,12 @@
                             $cdomain,$cname);
     }
     if (keys(%anoncounter) > 0) {
-        &Apache::lonnet::cinc('nohist_anonsurveys',\%anoncounter,
-                            $cdomain,$cname);
+        &Apache::lonnet::cput('nohist_anonsurveys',\%anoncounter,
+                              $cdomain,$cname);
     }
     if (keys(%randtrycounter) > 0) {
-        &Apache::lonnet::cinc('nohist_randomizetry',\%randtrycounter,
-                            $cdomain,$cname);
+        &Apache::lonnet::cput('nohist_randomizetry',\%randtrycounter,
+                              $cdomain,$cname);
     }
 }