--- loncom/interface/domainprefs.pm 2008/12/18 17:06:00 1.76.2.3 +++ loncom/interface/domainprefs.pm 2008/12/17 22:12:53 1.79 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: domainprefs.pm,v 1.76.2.3 2008/12/18 17:06:00 raeburn Exp $ +# $Id: domainprefs.pm,v 1.79 2008/12/17 22:12:53 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -107,7 +107,7 @@ sub handler { 'quotas' => { text => 'User blogs, home pages and portfolios', help => 'Domain_Configuration_Quotas', - header => [{col1 => 'User type', + header => [{col1 => 'User affiliation', col2 => 'Available tools', col3 => 'Portfolio quota',}], }, @@ -175,7 +175,7 @@ sub handler { }], }, 'serverstatuses' => - {text => 'Access to Server Status Pages', + {text => 'Access to server status pages', help => 'Domain_Configuration_Server_Status', header => [{col1 => 'Status Page', col2 => 'Other named users', @@ -817,9 +817,9 @@ sub login_choices { bgs => "Background colors", links => "Link colors", font => "Font color", - pgbg => "Page", - mainbg => "Main panel", - sidebg => "Side panel", + pgbg => "Header", + mainbg => "Page", + sidebg => "Login box", link => "Link", alink => "Active link", vlink => "Visited link", @@ -1329,7 +1329,8 @@ sub print_quotas { '" value="_LC_adv" '.$checked.'/>'.$titles{$item}. ' '; } - $datatable .= '('.&mt('overrides affiliation').')'; + $datatable .= '('.&mt('overrides affiliation'). + ')'; $$rowtotal += $typecount; return $datatable; } @@ -3611,18 +3612,10 @@ sub modify_quotas { } $resulttext .= ''; } - my %newenv; foreach my $item (@usertools) { if (ref($changes{$item}) eq 'HASH') { - my $newacc = - &Apache::lonnet::usertools_access($env{'user.name'}, - $env{'user.domain'}, - $item,'reload'); - if ($env{'environment.tools.'.$item} ne '') { - if ($env{'environment.availabletools.'.$item} ne $newacc) { - $newenv{'environment.availabletools.'.$item} = $newacc; - } - } + my $hashid = $env{'user.name'}.':'.$env{'user.domain'}; + &Apache::lonnet::devalidate_cache_new('usertools.'.$item,$hashid); $resulttext .= '