--- loncom/interface/loncommon.pm 2013/04/25 17:58:40 1.1124
+++ loncom/interface/loncommon.pm 2013/05/03 14:28:35 1.1125
@@ -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 @@ sub upload_embedded {
} else {
$output .= &mt('Uploaded [_1]',''.
$path.$fname.'').'
';
- &Apache::lonnet::make_public_indefinitely($result);
+ if ($context eq 'syllabus') {
+ &Apache::lonnet::make_public_indefinitely($result);
+ }
}
} else {
# Save the file