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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 31 Mar 2005 21:32:52 -0000


albertel		Thu Mar 31 16:32:52 2005 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  - looks better for * filetype
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.161 loncom/homework/inputtags.pm:1.162
--- loncom/homework/inputtags.pm:1.161	Thu Mar 31 16:30:54 2005
+++ loncom/homework/inputtags.pm	Thu Mar 31 16:32:52 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.161 2005/03/31 21:30:54 albertel Exp $
+# $Id: inputtags.pm,v 1.162 2005/03/31 21:32:52 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -306,8 +306,11 @@
     if (!$uploadedfiletypes) { return ''; }
     my $result;
     
-    $result.='<tr><td>'.
-	&mt('Allowed filetypes: <b>[_1]</b>',$uploadedfiletypes).'<br />';
+    $result.='<tr><td>';
+    if ($uploadedfiletypes ne '*') {
+	$result.=
+	    &mt('Allowed filetypes: <b>[_1]</b>',$uploadedfiletypes).'<br />';
+    }
     if ($which eq 'uploadonly' || $which eq 'both') { 
 	$result.=&mt('Submit a file: (only one file can be uploaded)').
 	    ' <br /><input type="file" size="50" name="HWFILE'.