[LON-CAPA-cvs] cvs: loncom /interface multidownload.pl

raeburn raeburn at source.lon-capa.org
Wed May 2 12:59:44 EDT 2018


raeburn		Wed May  2 16:59:44 2018 EDT

  Modified files:              
    /loncom/interface	multidownload.pl 
  Log:
  - Use three-argument open() to separate file mode from the filename.
  
  
Index: loncom/interface/multidownload.pl
diff -u loncom/interface/multidownload.pl:1.41 loncom/interface/multidownload.pl:1.42
--- loncom/interface/multidownload.pl:1.41	Sun Nov  5 18:19:41 2017
+++ loncom/interface/multidownload.pl	Wed May  2 16:59:44 2018
@@ -2,7 +2,7 @@
 # CGI-script to allow download of all essay submissions of 
 # multiple students.
 #
-# $Id: multidownload.pl,v 1.41 2017/11/05 18:19:41 raeburn Exp $
+# $Id: multidownload.pl,v 1.42 2018/05/02 16:59:44 raeburn Exp $
 # Copyright Michigan State University Board of Trustees
 #
 # This file is part of the LearningOnline Network with CAPA (LON-CAPA).
@@ -135,7 +135,7 @@
     unless (-d "$doc_zip_root/zipdir/$unique_user/$unique_path") {
         &File::Path::mkpath($doc_zip_root."/zipdir/$unique_user/$unique_path",0,0700);
     }
-    if (open(MANIFEST, ">$doc_zip_root/zipdir/$unique_user/$unique_path/manifest.txt")) {
+    if (open(MANIFEST,'>',"$doc_zip_root/zipdir/$unique_user/$unique_path/manifest.txt")) {
         $manifest = 1;
         print MANIFEST (&mt("Zip file generated on [_1]",&Apache::lonlocal::locallocaltime(time()))."\n");
         print MANIFEST (&mt("Course: [_1]",$env{"course.$courseid.description"})."\n");




More information about the LON-CAPA-cvs mailing list