--- loncom/lonnet/perl/lonnet.pm 2002/05/17 19:52:42 1.224 +++ loncom/lonnet/perl/lonnet.pm 2002/05/18 19:59:07 1.228 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.224 2002/05/17 19:52:42 albertel Exp $ +# $Id: lonnet.pm,v 1.228 2002/05/18 19:59:07 harris41 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2763,6 +2763,7 @@ sub hreflocation { unless (($file=~/^http:\/\//i) || ($file=~/^\//)) { my $finalpath=filelocation($dir,$file); $finalpath=~s/^\/home\/httpd\/html//; + $finalpath=~s-/home/(\w+)/public_html/-/~$1/-; return $finalpath; } else { return $file; @@ -2804,21 +2805,8 @@ sub goodbye { } BEGIN { -# ---------------------------------- Read loncapa_apache.conf and loncapa.conf -# (eventually access.conf will become deprecated) +# ----------------------------------- Read loncapa.conf and loncapa_apache.conf unless ($readit) { - -{ - my $config=Apache::File->new("/etc/httpd/conf/loncapa_apache.conf"); - - while (my $configline=<$config>) { - if ($configline =~ /^[^\#]*PerlSetVar/) { - my ($dummy,$varname,$varvalue)=split(/\s+/,$configline); - chomp($varvalue); - $perlvar{$varname}=$varvalue; - } - } -} { my $config=Apache::File->new("/etc/httpd/conf/loncapa.conf");