[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm

raeburn raeburn at source.lon-capa.org
Fri May 3 10:28:35 EDT 2013


raeburn		Fri May  3 14:28:35 2013 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  - indefinite public access only needed for dependencies for syllabus file. 
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1124 loncom/interface/loncommon.pm:1.1125
--- loncom/interface/loncommon.pm:1.1124	Thu Apr 25 17:58:40 2013
+++ loncom/interface/loncommon.pm	Fri May  3 14:28:35 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.1124 2013/04/25 17:58:40 bisitz Exp $
+# $Id: loncommon.pm,v 1.1125 2013/05/03 14:28:35 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -10209,7 +10209,9 @@
             } else {
                 $output .= &mt('Uploaded [_1]','<span class="LC_filename">'.
                            $path.$fname.'</span>').'<br />';
-                &Apache::lonnet::make_public_indefinitely($result);
+                if ($context eq 'syllabus') {
+                    &Apache::lonnet::make_public_indefinitely($result);
+                }
             }
         } else {
 # Save the file




More information about the LON-CAPA-cvs mailing list