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

raeburn raeburn@source.lon-capa.org
Wed, 21 Jan 2009 16:17:35 -0000


raeburn		Wed Jan 21 16:17:35 2009 EDT

  Modified files:              
    /loncom/homework	essayresponse.pm 
  Log:
  - Bridge Tasks do not require a list of allowed filetype(s).   
  
  
Index: loncom/homework/essayresponse.pm
diff -u loncom/homework/essayresponse.pm:1.98 loncom/homework/essayresponse.pm:1.99
--- loncom/homework/essayresponse.pm:1.98	Mon Jan  5 05:54:34 2009
+++ loncom/homework/essayresponse.pm	Wed Jan 21 16:17:35 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # essay (ungraded) style responses
 #
-# $Id: essayresponse.pm,v 1.98 2009/01/05 05:54:34 raeburn Exp $
+# $Id: essayresponse.pm,v 1.99 2009/01/21 16:17:35 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -267,7 +267,7 @@
         }
         my $uploadedfiletypes= 
             &Apache::lonnet::EXT("resource.$part".'_'."$id.uploadedfiletypes");
-        if ($uploadedfiletypes) {
+        if ($uploadedfiletypes ne '') {
             $uploadedfiletypes=~s/[^\w\,]//g;
             $uploadedfiletypes=','.$uploadedfiletypes.',';
             foreach my $file (@submitted_files) {
@@ -281,6 +281,10 @@
                     }
                 }
             }
+        } else {
+            foreach my $file (@submitted_files) {
+                push(@acceptable_files,$file);
+            }
         }
         my $maxfilesize=&Apache::lonnet::EXT("resource.$part".'_'."$id.maxfilesize");
         if (!$maxfilesize) {