--- loncom/interface/lonmeta.pm 2010/06/06 02:40:30 1.240 +++ loncom/interface/lonmeta.pm 2011/11/07 20:05:56 1.243 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Metadata display handler # -# $Id: lonmeta.pm,v 1.240 2010/06/06 02:40:30 raeburn Exp $ +# $Id: lonmeta.pm,v 1.243 2011/11/07 20:05:56 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -828,7 +828,7 @@ sub handler { {'domain' => $resdomain,})); $r->print(&pageheader()); &present_editable_metadata($r,$uri,'groups'); - } elsif ($uri=~m|^/~|) { + } elsif ($uri=~m|^/priv|) { # Construction space &Apache::lonhtmlcommon::add_breadcrumb({ 'text' => 'Edit Metadata', @@ -874,7 +874,7 @@ sub report_bombs { $uri = &Apache::lonnet::declutter($uri); $r->print('

'.&Apache::lonnet::clutter($uri).'

'); my ($domain,$author)=($uri=~/^($match_domain)\/($match_username)\//); - if (&Apache::loncacc::constructaccess('/~'.$author.'/',$domain)) { + if (&Apache::loncacc::constructaccess('/priv/'.$domain.'/'.$author.'/')) { if ($env{'form.clearbombs'}) { &Apache::lonmsg::clear_author_res_msg($uri); } @@ -1053,7 +1053,7 @@ sub print_dynamic_metadata { } # # Assessment statistics - if ($uri=~/\.(problem|exam|quiz|assess|survey|form)$/) { + if ($uri=~/$LONCAPA::assess_re/) { if (exists($dynmeta{'stdno'}) || exists($dynmeta{'avetries'}) || exists($dynmeta{'difficulty'}) ||