--- loncom/interface/lonprintout.pm 2011/11/07 16:09:09 1.607 +++ loncom/interface/lonprintout.pm 2011/11/07 18:24:42 1.608 @@ -2,7 +2,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.607 2011/11/07 16:09:09 www Exp $ +# $Id: lonprintout.pm,v 1.608 2011/11/07 18:24:42 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -634,9 +634,10 @@ sub include_pdf { # (unlikely). If it did exist, add the pdf to the set of files/images that # need tob e converted for this print job: - $file =~ s|(.*)/res/|/home/httpd/html/res/|; + my $londocroot = $Apache::lonnet::perlvar{'lonDocRoot'}; + $file =~ s{(.*)/res/}{$londocroot/res/}; - open(FILE,">>/home/httpd/prtspool/$env{'user.name'}_$env{'user.domain'}_printout.dat"); + open(FILE,">>$Apache::lonnet::perlvar{'lonPrtDir'}/$env{'user.name'}_$env{'user.domain'}_printout.dat"); print FILE ("$file\n"); close (FILE);