--- loncom/interface/loncommon.pm 2009/03/09 05:25:40 1.765 +++ loncom/interface/loncommon.pm 2009/03/17 16:11:52 1.768 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.765 2009/03/09 05:25:40 raeburn Exp $ +# $Id: loncommon.pm,v 1.768 2009/03/17 16:11:52 schulted Exp $ # # Copyright Michigan State University Board of Trustees # @@ -5910,7 +5910,7 @@ table em{ font-style: normal; } -table#LC_tableOfContent{ +table.LC_tableOfContent{ border-collapse: collapse; border-spacing: 0; padding: 3px; @@ -5918,15 +5918,16 @@ table#LC_tableOfContent{ background-color: #FFFFFF; font-size: 90%; } -table#LC_tableOfContent a { +table.LC_tableOfContent a { + background-color:transparent; text-decoration: none; } -table#LC_tableOfContent tr.LC_trOdd{ +table.LC_tableOfContent tr.LC_trOdd{ background-color: #EEEEEE; } -table#LC_tableOfContent img{ +table.LC_tableOfContent img{ border: none; height: 1.3em; vertical-align: text-bottom; @@ -5981,12 +5982,13 @@ ul#LC_toolbar li{ border:1px solid white; padding:0; margin: 0; - display:inline-block; + float: left; + display:inline; vertical-align:middle; } a.LC_toolbarItem{ - display:inline-block; + display:block; padding:0; margin:0; height: 32px; @@ -8876,9 +8878,10 @@ sub restore_settings { =item * &build_recipient_list() -Build recipient lists for three types of e-mail: -(a) Error Reports, (b) Package Updates, (c) Help requests, generated by -lonerrorhandler.pm, CHECKRPMS and lonsupportreq.pm respectively. +Build recipient lists for four types of e-mail: +(a) Error Reports, (b) Package Updates, (c) lonstatus warnings/errors +(d) Help requests, generated by +lonerrorhandler.pm, CHECKRPMS, loncron, and lonsupportreq.pm respectively. Inputs: defmail (scalar - email address of default recipient), @@ -8902,17 +8905,21 @@ sub build_recipient_list { my %domconfig = &Apache::lonnet::get_dom('configuration',['contacts'],$defdom); if (ref($domconfig{'contacts'}) eq 'HASH') { - if (ref($domconfig{'contacts'}{$mailing}) eq 'HASH') { - my @contacts = ('adminemail','supportemail'); - foreach my $item (@contacts) { - if ($domconfig{'contacts'}{$mailing}{$item}) { - my $addr = $domconfig{'contacts'}{$item}; - if (!grep(/^\Q$addr\E$/,@recipients)) { - push(@recipients,$addr); + if (exists($domconfig{'contacts'}{$mailing})) { + if (ref($domconfig{'contacts'}{$mailing}) eq 'HASH') { + my @contacts = ('adminemail','supportemail'); + foreach my $item (@contacts) { + if ($domconfig{'contacts'}{$mailing}{$item}) { + my $addr = $domconfig{'contacts'}{$item}; + if (!grep(/^\Q$addr\E$/,@recipients)) { + push(@recipients,$addr); + } } + $otheremails = $domconfig{'contacts'}{$mailing}{'others'}; } - $otheremails = $domconfig{'contacts'}{$mailing}{'others'}; } + } elsif ($origmail ne '') { + push(@recipients,$origmail); } } elsif ($origmail ne '') { push(@recipients,$origmail);