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

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 18 Feb 2004 22:23:19 -0000


albertel		Wed Feb 18 17:23:19 2004 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm printout.pl 
  Log:
  - CSTR back links didn't include the /priv
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.278 loncom/interface/lonprintout.pm:1.279
--- loncom/interface/lonprintout.pm:1.278	Tue Feb 17 11:24:24 2004
+++ loncom/interface/lonprintout.pm	Wed Feb 18 17:23:19 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.278 2004/02/17 16:24:24 albertel Exp $
+# $Id: lonprintout.pm,v 1.279 2004/02/18 22:23:19 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1213,7 +1213,10 @@
     } else {
 	#prints resource from the construction space
 	$URLback='/'.$helper->{'VARS'}->{'filename'};
-	if ($URLback=~/([^?]+)/) {$URLback=$1;}
+	if ($URLback=~/([^?]+)/) {
+	    $URLback=$1;
+	    $URLback=~s|^/~|/priv/|;
+	}
     }
 
     &Apache::lonnet::appenv('cgi.'.$identifier.'.file'   => $filename,
Index: loncom/interface/printout.pl
diff -u loncom/interface/printout.pl:1.49 loncom/interface/printout.pl:1.50
--- loncom/interface/printout.pl:1.49	Mon Feb 16 19:26:20 2004
+++ loncom/interface/printout.pl	Wed Feb 18 17:23:19 2004
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 # CGI-script to run LaTeX, dvips, ps2ps, ps2pdf etc.
 #
-# $Id: printout.pl,v 1.49 2004/02/17 00:26:20 albertel Exp $
+# $Id: printout.pl,v 1.50 2004/02/18 22:23:19 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -61,7 +61,6 @@
   my $tableofcontents = $ENV{'cgi.'.$identifier.'tableofcontents'};
   my $tableofindex = $ENV{'cgi.'.$identifier.'tableofindex'};
   my $advans_role = $ENV{'cgi.'.$identifier.'role'};
-  my $back_ref = $ENV{'cgi.'.$identifier.'backref'};
   my $number_of_files = $ENV{'cgi.'.$identifier.'numberoffiles'}+1;
   my $student_names = $ENV{'cgi.'.$identifier.'studentnames'};
   my $backref = $ENV{'cgi.'.$identifier.'backref'};