--- loncom/homework/structuretags.pm 2004/11/10 22:20:50 1.271 +++ loncom/homework/structuretags.pm 2004/11/30 23:28:57 1.273 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.271 2004/11/10 22:20:50 albertel Exp $ +# $Id: structuretags.pm,v 1.273 2004/11/30 23:28:57 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -88,7 +88,10 @@ sub page_start { &Apache::lonxml::fontsettings(); } my $body_tag_start; - if (!defined($found{'body'})) { + if (!defined($found{'body'}) && $ENV{'request.state'} eq 'construct' + && $ENV{'environment.remote'} eq 'off') { + $body_tag_start=&Apache::loncommon::bodytag(); + } elsif (!defined($found{'body'})) { $body_tag_start=''.&mt('Simple Problem Editor').' - '.&mt('Note: it can take up to 10 minutes for changes to take effect for all users.'). + ''.&mt('Edit').' - '.&mt('Note: it can take up to 10 minutes for changes to take effect for all users.'). &Apache::loncommon::help_open_topic('Caching').'
'; } return $result;