--- loncom/interface/lonprintout.pm 2002/11/18 14:35:25 1.89 +++ loncom/interface/lonprintout.pm 2002/11/20 17:26:52 1.93 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.89 2002/11/18 14:35:25 sakharuk Exp $ +# $Id: lonprintout.pm,v 1.93 2002/11/20 17:26:52 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -107,7 +107,7 @@ ENDMENUOUT6 } my $subdirtoprint = &Apache::lonnet::filelocation("",$ENV{'form.url'}); $subdirtoprint =~ s/\/[^\/]+$//; - if (&Apache::lonnet::allowed('bre',$subdirtoprint) eq 'F') { + if ((&Apache::lonnet::allowed('bre',$subdirtoprint) eq 'F') and ($ENV{'form.postdata'}=~/\.(problem|exam|quiz|assess|survey|form|library|page|xml|html|htm|xhtml|xhtm)/)) { $r->print(< Problems from current subdirectory $subdir_to_print
ENDMENUOUT4 @@ -165,6 +165,7 @@ sub sequence_content_menu { +

Mark item(s) which you want to print