--- loncom/lontrans.pm 2006/01/16 19:27:09 1.10 +++ loncom/lontrans.pm 2006/05/30 12:45:12 1.11 @@ -1,7 +1,7 @@ # The LearningOnline Network # URL translation for User Files # -# $Id: lontrans.pm,v 1.10 2006/01/16 19:27:09 albertel Exp $ +# $Id: lontrans.pm,v 1.11 2006/05/30 12:45:12 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -32,7 +32,9 @@ use strict; use Apache::Constants qw(:common :remotehost); use Apache::lonnet(); use Apache::File(); -use Apache::loncommon; +use lib '/home/httpd/lib/perl'; +use LONCAPA; + sub handler { my $r = shift; @@ -46,7 +48,7 @@ sub handler { my @ids=&Apache::lonnet::current_machine_ids(); foreach my $id (@ids) { if ($id eq $chome) { $allowed=1; } } if ($allowed) { - $r->filename(&Apache::loncommon::propath($udom,$uname). + $r->filename(&propath($udom,$uname). '/userfiles/'.(join('/',@ufile))); } } elsif ($r->uri=~m|^/~|) {