--- loncom/lonnet/perl/lonnet.pm 2004/07/02 21:34:55 1.519 +++ loncom/lonnet/perl/lonnet.pm 2004/07/02 21:55:13 1.520 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.519 2004/07/02 21:34:55 banghart Exp $ +# $Id: lonnet.pm,v 1.520 2004/07/02 21:55:13 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3589,16 +3589,16 @@ sub revokecustomrole { # sub portfoliolist { - my ($currentPath, $currentFile) = @_; - my ($udom, $uname, $portfolioRoot); - $uname=$ENV{'user.name'}; + my ($currentPath, $currentFile) = @_; + my ($udom, $uname, $portfolioRoot); + $uname=$ENV{'user.name'}; $udom=$ENV{'user.domain'}; # really should interrogate the system for home directory information, but . . . $portfolioRoot = '/home/httpd/lonUsers/'.$udom.'/'; $uname =~ /^(.?)(.?)(.?)/; $portfolioRoot = $portfolioRoot.$1.'/'.$2.'/'.$3.'/'.$uname.'/userfiles/portfolio'; - my $listing = &reply('ls:'.$portfolioRoot.$currentPath, homeserver($uname,$udom)); - return $listing; + my $listing = &reply('ls:'.$portfolioRoot.$currentPath, &homeserver($uname,$udom)); + return $listing; } sub portfoliomanage {