--- loncom/interface/lonprintout.pm 2003/05/08 18:41:16 1.159 +++ loncom/interface/lonprintout.pm 2003/05/08 19:16:42 1.160 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.159 2003/05/08 18:41:16 sakharuk Exp $ +# $Id: lonprintout.pm,v 1.160 2003/05/08 19:16:42 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1749,16 +1749,9 @@ sub printHelper { # "Delete everything after the last slash." $subdir =~ s|/[^/]+$||; - if (not defined $helper->{VARS}->{'construction'}) { - $subdir = '/home/httpd/html/res'.$subdir; - } else { - $helper->{VARS}->{'construction'}=~/^([^\/]+)\/\/([^\/]+)(.*)\/[^\/]*$/; - $subdir = $3; - $subdir=~/\/~([^\/]+)\/(.*)$/; - $subdir = '/home/'.$1.'/public_html/'.$2; + if (not $helper->{VARS}->{'construction'}) { + $subdir='/home/httpd/html/res/'.$subdir; } -#### $r->print('Dir: '.$subdir.' '); -#### return OK; # What can be printed is a very dynamic decision based on