--- loncom/homework/lonhomework.pm 2000/08/11 14:25:24 1.6 +++ loncom/homework/lonhomework.pm 2000/09/14 20:55:42 1.9 @@ -8,6 +8,7 @@ use Apache::lonxml; use Apache::lonnet; use Apache::inputtags; use Apache::structuretags; +use Apache::response; sub handler { my $request=shift; @@ -52,7 +53,10 @@ sub send_footer { sub getfile { my ($filename) = @_; my $a=""; - &Apache::lonnet::repcopy($filename); + if (! -e $filename ) { + &Apache::lonnet::subscribe($filename); + &Apache::lonnet::repcopy($filename); + } { my $fh=Apache::File->new($filename);