[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm

raeburn raeburn at source.lon-capa.org
Mon Nov 7 13:24:43 EST 2011


raeburn		Mon Nov  7 18:24:43 2011 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  - use values from Apache::lonnet::perlvar in place of static strings.
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.607 loncom/interface/lonprintout.pm:1.608
--- loncom/interface/lonprintout.pm:1.607	Mon Nov  7 16:09:09 2011
+++ loncom/interface/lonprintout.pm	Mon Nov  7 18:24:42 2011
@@ -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 @@
     # (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);
 




More information about the LON-CAPA-cvs mailing list