--- loncom/homework/structuretags.pm 2006/03/28 18:31:37 1.332.2.1 +++ loncom/homework/structuretags.pm 2006/03/02 21:20:30 1.337 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.332.2.1 2006/03/28 18:31:37 albertel Exp $ +# $Id: structuretags.pm,v 1.337 2006/03/02 21:20:30 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -156,9 +156,8 @@ sub page_start { } my $form_tag_start; if (!defined($found{'form'})) { - $form_tag_start='
'. ''. + value="'.&mt('New Problem Variation').'" />'; + if (exists($env{'form.username'})) { + $form_tag_start.= ''; - if ($env{'user.adv'}) { + } + if ($env{'request.role.adv'}) { $form_tag_start.= '