--- loncom/interface/lonhelpmenu.pm 2008/07/08 01:08:57 1.35 +++ loncom/interface/lonhelpmenu.pm 2009/10/20 14:29:44 1.38 @@ -1,6 +1,8 @@ # The LearningOnline Network with CAPA # generate frame-based help system # +# $Id: lonhelpmenu.pm,v 1.38 2009/10/20 14:29:44 jms Exp $ +# # Copyright Michigan State University Board of Trustees # # This file is part of the LearningOnline Network with CAPA (LON-CAPA). @@ -72,6 +74,8 @@ sub handler { sub display_help_banner { my ($r,$faq,$bug,$topic,$component_url,$origurl,$bugurl,$faqbaseurl,$requestmail,$stayOnPage) = @_; my $location=&Apache::loncommon::lonhttpdurl("/adm"); + my $dom = $env{'request.role.domain'}; + my %domconfig = &Apache::lonnet::get_dom('configuration',['login'],$dom); my $scripttag = ''; if ($requestmail =~ m/^[^\@]+\@[^\@]+$/) { my $displayurl = &escape($origurl); @@ -153,7 +157,7 @@ SCRIPT_TWO + (General help) General Help  END if ($component_url) { $r->print(" + if ($domconfig{'login'}{'submitbugs'} eq '1' || + $domconfig{'login'}{'submitbugs'} eq '' ) { + $r->print(<(Report a bug) Report a bug  END + } } if ($stayOnPage) { $r->print(<