[LON-CAPA-cvs] cvs: loncom(GCI_3) /interface lonmenu.pm
raeburn
raeburn@source.lon-capa.org
Thu, 02 Dec 2010 13:07:08 -0000
raeburn Thu Dec 2 13:07:08 2010 EDT
Modified files: (Branch: GCI_3)
/loncom/interface lonmenu.pm
Log:
- Customization for GCI_3
- Backport 1.340.
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.309.2.19 loncom/interface/lonmenu.pm:1.309.2.20
--- loncom/interface/lonmenu.pm:1.309.2.19 Tue Nov 30 05:51:55 2010
+++ loncom/interface/lonmenu.pm Thu Dec 2 13:07:08 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.309.2.19 2010/11/30 05:51:55 raeburn Exp $
+# $Id: lonmenu.pm,v 1.309.2.20 2010/12/02 13:07:08 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -204,7 +204,18 @@
if ($$menuitem[3] eq 'Help') { # special treatment for helplink
- $menu .= '<li>'.&Apache::loncommon::top_nav_help('Help').'</li>';
+ if ($public) {
+ my $origmail = $Apache::lonnet::perlvar{'lonSupportEMail'};
+ my $defdom = &Apache::lonnet::default_login_domain();
+ my $to = &Apache::loncommon::build_recipient_list(undef,
+ 'helpdeskmail',
+ $defdom,$origmail);
+ if ($to ne '') {
+ $menu .= &prep_menuitem($menuitem);
+ }
+ } else {
+ $menu .= '<li>'.&Apache::loncommon::top_nav_help('Help').'</li>';
+ }
} else {
my @items = @{$menuitem};
$items[0] = 'javascript:'.$menuitem->[0].';';