--- loncom/interface/lonhelpmenu.pm 2006/06/26 22:09:01 1.28 +++ loncom/interface/lonhelpmenu.pm 2006/06/26 22:13:13 1.29 @@ -37,7 +37,7 @@ use LONCAPA; sub handler { my ($r) = @_; - &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['page','function','faq','bug','topic','component_help','origurl','stayonpage']); + &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['page','faq','bug','topic','component_help','origurl','stayonpage']); &Apache::loncommon::content_type($r,'text/html'); $r->send_http_header; @@ -47,7 +47,6 @@ sub handler { my $faq = $env{'form.faq'}; my $bug = $env{'form.bug'}; my $topic = $env{'form.topic'}; - my $function = $env{'form.function'}; my $component_help = $env{'form.component_help'}; my $origurl = $env{'form.origurl'}; my $stayOnPage = $env{'form.stayonpage'}; @@ -63,15 +62,15 @@ sub handler { my $faqbaseurl = $Apache::lonnet::perlvar{'FAQHost'}; my $requestmail = $Apache::lonnet::perlvar{'lonSupportEMail'}; if ($env{'form.page'} eq 'banner') { - &display_help_banner($r,$function,$faq,$bug,$topic,$component_url,$origurl,$bugurl,$faqbaseurl,$requestmail,$stayOnPage); + &display_help_banner($r,$faq,$bug,$topic,$component_url,$origurl,$bugurl,$faqbaseurl,$requestmail,$stayOnPage); } elsif ($env{'form.page'} eq 'body') { - &display_help_mainpage($r,$function,$faq,$bug,$topic,$component_url,$origurl,$bugurl,$faqbaseurl,$requestmail); + &display_help_mainpage($r,$faq,$bug,$topic,$component_url,$origurl,$bugurl,$faqbaseurl,$requestmail); } return OK; } sub display_help_banner { - my ($r,$function,$faq,$bug,$topic,$component_url,$origurl,$bugurl,$faqbaseurl,$requestmail,$stayOnPage) = @_; + my ($r,$faq,$bug,$topic,$component_url,$origurl,$bugurl,$faqbaseurl,$requestmail,$stayOnPage) = @_; my $location=&Apache::loncommon::lonhttpdurl("/adm"); my $scripttag = ''; if ($requestmail =~ m/^[^\@]+\@[^\@]+$/) { @@ -84,7 +83,7 @@ function gohelpdesk() { actiontype = parent.bodyframe.document.logproblem.action.value; } catch(error) { - parent.bodyframe.location = "/adm/support?origurl=$displayurl&function=$function"; + parent.bodyframe.location = "/adm/support?origurl=$displayurl"; return; } if (actiontype) { @@ -99,7 +98,7 @@ function gohelpdesk() { return; } } - parent.bodyframe.location = "/adm/support?origurl=$displayurl&function=$function"; + parent.bodyframe.location = "/adm/support?origurl=$displayurl"; return; } } @@ -138,8 +137,7 @@ SCRIPT_TWO 'marginheight' => "1"); my $start_page = &Apache::loncommon::start_page('',$scripttag, - {'function' => $function, - 'add_entries' => \%body_layout, + {'add_entries' => \%body_layout, 'only_body' => 1,}); $r->print($start_page); @@ -200,7 +198,7 @@ END } sub display_help_mainpage { - my ($r,$function,$faq,$bug,$topic,$component_url,$origurl,$bugurl,$faqbaseurl,$requestmail) = @_; + my ($r,$faq,$bug,$topic,$component_url,$origurl,$bugurl,$faqbaseurl,$requestmail) = @_; my %lt =&Apache::lonlocal::texthash( 'topp' => 'Topic Page', @@ -227,8 +225,7 @@ sub display_help_mainpage { 'marginheight' => "0"); my $start_page = &Apache::loncommon::start_page('Help Content',undef, - {'function' => $function, - 'add_entries' => \%body_layout, + {'add_entries' => \%body_layout, 'only_body' => 1,}); $r->print($start_page); $r->print($lt{'chen'}); @@ -257,7 +254,7 @@ sub display_help_mainpage { if ($requestmail =~ m/^[^\@]+\@[^\@]+$/) { $r->print("

$lt{'suhr'}"); unless ($env{'user.adv'}) {