--- loncom/homework/structuretags.pm 2003/10/14 00:21:12 1.217 +++ loncom/homework/structuretags.pm 2003/11/01 16:37:21 1.220 @@ -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.220 2003/11/01 16:37:21 www 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 '; @@ -1163,7 +1159,7 @@ sub start_simpleeditbutton { my $result=''; if (($target eq 'web') && (&Apache::lonnet::allowed('srm',$ENV{'request.course.id'}))) { - my $url=$ENV{'REQUEST_URI'}; + my $url=$ENV{'request.noversionuri'}; $url=~s/\?.*$//; $result='
'. ''.&mt('Simple Problem Editor').' - '.&mt('Note: it can take up to 10 minutes for changes to take effect for all users.').