--- loncom/homework/structuretags.pm 2003/10/14 00:21:12 1.217 +++ loncom/homework/structuretags.pm 2003/10/30 20:52:54 1.219 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.217 2003/10/14 00:21:12 albertel Exp $ +# $Id: structuretags.pm,v 1.219 2003/10/30 20:52:54 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -84,10 +84,7 @@ sub page_start { if (!defined($found{'html'})) { $result=&Apache::londefdef::start_html($target,$token,$tagstack, $parstack,$parser,$safeeval); - $head_tag_start=''; - if ($ENV{'request.state'} eq 'published') { - $head_tag_start.=&Apache::lonmenu::registerurl(undef,$target); - } + $head_tag_start=''.&Apache::lonmenu::registerurl(undef,$target); } my $body_tag_start; if (!defined($found{'body'})) { @@ -1118,8 +1115,7 @@ sub end_startouttext { &Apache::edit::editfield($token->[1],$text,"",80,4); } if ($target eq 'modified') { - $text=&Apache::lonxml::get_all_text("endouttext",$parser); - $result=''.&Apache::edit::modifiedfield(); + $result=''.&Apache::edit::modifiedfield("endouttext",$parser); } if ($target eq 'tex') { $result .= '\noindent ';