--- loncom/lonnet/perl/lonnet.pm 2007/11/20 17:54:40 1.928 +++ loncom/lonnet/perl/lonnet.pm 2007/12/05 20:06:34 1.929 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.928 2007/11/20 17:54:40 albertel Exp $ +# $Id: lonnet.pm,v 1.929 2007/12/05 20:06:34 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -6853,8 +6853,9 @@ sub metadata { unless ($filename=~/\.meta$/) { $filename.='.meta'; } my $metastring; if ($uri =~ /^~/ || $uri =~ m{home/$match_username/public_html/}) { + my $which = &hreflocation('','/'.($liburi || $uri)); $metastring = - &Apache::lonnet::ssi_body(&hreflocation('','/'.$uri), + &Apache::lonnet::ssi_body($which, ('grade_target' => 'meta')); $cachetime = 1; # only want this cached in the child not long term } elsif ($uri !~ m -^(editupload)/-) {