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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 10 Aug 2006 21:21:44 -0000


albertel		Thu Aug 10 17:21:44 2006 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - BUG#4961 - practice was not working
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.362 loncom/homework/structuretags.pm:1.363
--- loncom/homework/structuretags.pm:1.362	Thu Jul 27 16:47:03 2006
+++ loncom/homework/structuretags.pm	Thu Aug 10 17:21:42 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.362 2006/07/27 20:47:03 albertel Exp $
+# $Id: structuretags.pm,v 1.363 2006/08/10 21:21:42 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -593,7 +593,6 @@
 	$Apache::lonhomework::scantronmode=1;
     }
 
-    &initialize_storage();
     if ($target ne 'analyze') {
 	if ($target eq 'web') {
 	    &Apache::lonhomework::showhash(%Apache::lonhomework::history);
@@ -618,6 +617,8 @@
     }
     $Apache::lonhomework::default_type = $Apache::lonhomework::type;
 
+    &initialize_storage();
+
     #added vars to the scripting enviroment
     my $expression='$external::part=\''.$Apache::inputtags::part.'\';';
     $expression.='$external::type=\''.$Apache::lonhomework::type.'\';';