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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 03 May 2005 19:22:58 -0000


albertel		Tue May  3 15:22:58 2005 EDT

  Modified files:              
    /loncom/homework	essayresponse.pm 
  Log:
  - switch to passing an array reff
  
  
Index: loncom/homework/essayresponse.pm
diff -u loncom/homework/essayresponse.pm:1.65 loncom/homework/essayresponse.pm:1.66
--- loncom/homework/essayresponse.pm:1.65	Tue May  3 01:31:51 2005
+++ loncom/homework/essayresponse.pm	Tue May  3 15:22:58 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # essay (ungraded) style responses
 #
-# $Id: essayresponse.pm,v 1.65 2005/05/03 05:31:51 albertel Exp $
+# $Id: essayresponse.pm,v 1.66 2005/05/03 19:22:58 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -179,8 +179,8 @@
 	}
 	if ($$award ne 'INVALID_FILETYPE' && $which eq 'portfiles') {
 	    my ($symb,$crsid,$domain,$name)=&Apache::lonxml::whichuser();
-	    &Apache::lonnet::unmark_as_readonly($domain,$name,$symb.$crsid);
-	    &Apache::lonnet::mark_as_readonly($domain,$name,\@submitted_files,$symb.$crsid);
+	    &Apache::lonnet::unmark_as_readonly($domain,$name,[$symb,$crsid]);
+	    &Apache::lonnet::mark_as_readonly($domain,$name,\@submitted_files,[$symb,$crsid]);
 	    &Apache::lonnet::clear_selected_files($name);
 	}
 	if ($$award ne 'INVALID_FILETYPE' && $which eq 'filename') {
@@ -193,7 +193,7 @@
     } elsif ($which eq 'portfiles' &&
 	     $Apache::lonhomework::history{"resource.$part.$id.$which"}) {
 	my ($symb,$crsid,$domain,$name)=&Apache::lonxml::whichuser();
-	&Apache::lonnet::unmark_as_readonly($domain,$name,$symb.$crsid);
+	&Apache::lonnet::unmark_as_readonly($domain,$name,[$symb,$crsid]);
 	$Apache::lonhomework::results{"resource.$part.$id.$which"}="";
     }
 }