--- loncom/interface/lonprintout.pm 2007/04/20 20:33:35 1.499 +++ loncom/interface/lonprintout.pm 2007/04/26 09:32:23 1.500 @@ -2,7 +2,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.499 2007/04/20 20:33:35 foxr Exp $ +# $Id: lonprintout.pm,v 1.500 2007/04/26 09:32:23 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -60,19 +60,13 @@ sub fetch_raw_resource { my ($url) = @_; my $filename = &Apache::lonnet::filelocation("", $url); - # - # fetch if needed: - # - if (! -e $filename) { - my $repcopy_result = &Apache::lonnet::repcopy($filename); - - if ($repcopy_result ne 'ok') { - return "File open failed for $filename"; # This will bomb the print. - } - } - my $contents = &Apache::lonnet::readfile($filename); + my $contents = &Apache::lonnet::getfile($filename); + if ($contents == -1) { + return "File open failed for $filename"; # This will bomb the print. + } return $contents; + }