--- loncom/interface/portfolio.pm 2006/03/19 22:08:38 1.97 +++ loncom/interface/portfolio.pm 2006/05/18 01:08:52 1.99 @@ -30,6 +30,7 @@ use Apache::lontexconvert; use Apache::lonfeedback; use Apache::lonlocal; use Apache::lonnet; +use Apache::longroup; # receives a file name and path stub from username/userfiles/portfolio/ # returns an anchor tag consisting encoding filename and currentpath @@ -501,7 +502,6 @@ sub upload { } else { my $result=&Apache::lonnet::userfileupload('uploaddoc','', $port_path.$env{'form.currentpath'}); - print STDERR "result was $result for $port_path.$env{'form.currentpath'}\n"; if ($result !~ m|^/uploaded/|) { $r->print(' An errror occured ('.$result. ') while trying to upload '.&display_file().'
'); @@ -649,10 +649,10 @@ sub handler { $group = $env{'form.group'}; $group =~ s/\W//g; if ($group) { - my %curr_groups = (); ($uname,$udom) = &get_name_dom($group); - if (&Apache::loncommon::coursegroups(\%curr_groups,$udom,$uname, - $group)) { + my %curr_groups = &Apache::longroup::coursegroups($udom,$uname, + $group); + if (%curr_groups) { if (($view_permission) || (&Apache::lonnet::allowed('rgf', $env{'request.course.id'}.'/'.$group))) { $portfolio_root = &get_portfolio_root($group);