--- loncom/homework/structuretags.pm 2003/08/13 18:19:59 1.204 +++ loncom/homework/structuretags.pm 2003/08/13 18:49:41 1.205 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.204 2003/08/13 18:19:59 albertel Exp $ +# $Id: structuretags.pm,v 1.205 2003/08/13 18:49:41 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -140,7 +140,7 @@ sub get_resource_name { } if ($name!~/\S+/) { $name=$ENV{'request.uri'}; - $name=~s-/([^/]+)$-$1-; + $name=~s-.*/([^/]+)$-$1-; } $Apache::lonhomework::name=$name; return $name; @@ -443,12 +443,6 @@ sub start_problem { if (not $ENV{'form.problem_split'}=~/yes/) { $startminipage = '\begin{minipage}{\textwidth}'; } - my $name= &Apache::lonxml::get_param('name',$parstack,$safeeval); - if ($name eq '') { - $name=&Apache::lonnet::EXT('resource.title'); - if ($name eq 'con_lost') { $name = ''; } - } - $Apache::lonhomework::name=$name; my $id = $Apache::inputtags::part; my $weight = &Apache::lonnet::EXT("resource.$id.weight"); my $allkeys=&Apache::lonnet::metadata($ENV{'request.uri'},'keys');